[wpa] bring up interface in ap_mode=2

This is required for WPA-NONE operation.

PR:		bin/203086
Submitted by:	avos@
This commit is contained in:
Adrian Chadd 2015-11-26 17:26:28 +00:00
parent e561aa79fb
commit 7424f50fa8

View File

@ -1102,6 +1102,13 @@ wpa_driver_bsd_associate(void *priv, struct wpa_driver_associate_params *params)
params->wpa_ie[0] == WLAN_EID_RSN ? 2 : 1) < 0)
return -1;
/*
* NB: interface must be marked UP for association
* or scanning (ap_scan=2)
*/
if (bsd_ctrl_iface(drv, 1) < 0)
return -1;
os_memset(&mlme, 0, sizeof(mlme));
mlme.im_op = IEEE80211_MLME_ASSOC;
if (params->ssid != NULL)