Fix authentication algorithm negotiation in SME code

Commit 6ac4b15ef8af434d216fd2dac62ec82948ab0fbd (wpa_radio work for
connection) caused a regression for cases where multiple auth_alg values
are set in a network block and wpa_supplicant-based SME is supposed to
iterate through them. The connection radio work was not terminated when
receiving authentication failure and this resulted in the following
authentication attempt failing.

Signed-hostap: Jouni Malinen <j@w1.fi>
bsd: Fix hostapd compiler warning

The hostapd compilation displays a below warning On NetBSD 6.1.2.

../src/drivers/driver_bsd.c:72:1: warning: 'get80211opmode' defined but not used

This patch solves it and moves other functions to appropriate position to
reduce #ifdef.

Signed-hostap: Masashi Honma <masashi.honma@gmail.com>
Fix hostapd segfault on beacon hint event

Commit 795baf773f6d53bae3cfae4df6edda63e5022344 ('hostapd: Filter
channel list updated events after country code change') uses the
EVENT_CHANNEL_LIST_CHANGED data pointer, but it updated only one of the
callers to provide that data. NL80211_CMD_REG_BEACON_HINT event was
still sending the event without the initiator data and resulted in NULL
pointer dereference, e.g., if a scan was run while hostapd was running
and the driver was in world roaming state and enabled a channel for
active scans.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
wpa_supplicant: Fix misplaced os_free

os_free has wfd_dev_info_hex as an argument which is defined within
CONFIG_NO_STDOUT_DEBUG

Signed-hostap: Prashanth Kumar <prashanthkumar.kr@globaledgesoft.com>
tests: Verify different ways of configuring passphrase/PSK

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
tests: Add test cases for various AP mode parameters

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
tests: HT40 OBSS scan and 20/40 MHz co-ex report

Signed-hostap: Jouni Malinen <j@w1.fi>
tests: Hidden SSID using zero octets as payload

Signed-hostap: Jouni Malinen <j@w1.fi>
tests: OLBC AP detection

Signed-hostap: Jouni Malinen <j@w1.fi>
tests: NAI Home Realm Query

Signed-hostap: Jouni Malinen <j@w1.fi>
tests: ctrl_iface STA-FIRST and STA-NEXT iteration

Signed-hostap: Jouni Malinen <j@w1.fi>
tests require_ht=1

Signed-hostap: Jouni Malinen <j@w1.fi>
tests: WEP

Signed-hostap: Jouni Malinen <j@w1.fi>
tests: Verify WPS ER behavior on selecting a single Enrollee

Signed-hostap: Jouni Malinen <j@w1.fi>
tests: Verify WPS AP does not activate PBC during overlap

Signed-hostap: Jouni Malinen <j@w1.fi>
tests: Verify functionality with WPS 1.0 ER

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
tests: AP mode operations with wpa_supplicant

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
tests: wpa_supplicant ctrl_iface

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
tests: Report unexpected STATUS lines instead of stopping

It looks like get_status() has failed in some test runs because of a
STATUS command returning an line without '=' on it. Instead of stopping
there on exception, report the unexpected line in the log and ignore it
to allow test to continue.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Update ChangeLog files to match current implementation

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>