aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunil Dutt Undekari <usdutt@qti.qualcomm.com>2014-03-09 13:28:48 +0530
committerSteve Kondik <shade@chemlab.org>2014-06-12 14:08:08 -0700
commitdb0c964f0e8ea490a196be53ec403e7b88fb90a6 (patch)
tree9e81ae00dc0517a5b08a7b6eacc3c3681a3475ea
parent7ed291088ee12e6319a4aa9008cbff57f531f8a9 (diff)
downloadandroid_external_wpa_supplicant_8-db0c964f0e8ea490a196be53ec403e7b88fb90a6.tar.gz
android_external_wpa_supplicant_8-db0c964f0e8ea490a196be53ec403e7b88fb90a6.tar.bz2
android_external_wpa_supplicant_8-db0c964f0e8ea490a196be53ec403e7b88fb90a6.zip
Set the station to authorized on assoc event for open authentication
This was done in handle_assoc_cb() in ieee802_11.c for drivers that use hostapd SME/MLME. However, drivers that include SME/MLME implementation do not use that function and the STA flag needs to be set when processing the association notification. This is needed to get the STA entry into showing the proper authorized state and to get the AP-STA-CONNECTED/DISCONNECTED events on the control interface. CRs-Fixed: 608957 Git-commit: 113318ad574a47d41dcb1f160d11500e2d140d7d Git-repo : git://w1.fi/srv/git/hostap.git Change-Id: I7effbe5bfdb4838b4cc8c79a745dc5a0ad4fe78f Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r--src/ap/hostapd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
index 3852d146..13008963 100644
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
@@ -1511,6 +1511,7 @@ void hostapd_new_assoc_sta(struct hostapd_data *hapd, struct sta_info *sta,
* IEEE 802.1X/WPA code will start accounting after the station has
* been authorized. */
if (!hapd->conf->ieee802_1x && !hapd->conf->wpa) {
+ ap_sta_set_authorized(hapd, sta, 1);
os_get_time(&sta->connected_time);
accounting_sta_start(hapd, sta);
}