hostapd: backport current version from trunk as of r27021