aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorMoshe Benji <Moshe.Benji@intel.com>2014-10-22 12:03:54 (GMT)
committerJouni Malinen <j@w1.fi>2014-11-16 18:47:34 (GMT)
commita0413b17340a18ed905edc804ee2aab09b2c3186 (patch)
tree8c597b9a58bb67a23abf2d671c8646b11bf9ef7d /wpa_supplicant/events.c
parent7e0e10693a5e38d527b14af06cd76c863aeeff58 (diff)
downloadhostap-a0413b17340a18ed905edc804ee2aab09b2c3186.zip
hostap-a0413b17340a18ed905edc804ee2aab09b2c3186.tar.gz
hostap-a0413b17340a18ed905edc804ee2aab09b2c3186.tar.bz2
WMM AC: Parse WMM IE on association
Initialize WMM AC data structures upon successful association with an AP that publishes WMM support, and deinitialize the data structure when the association is no longer valid. Signed-off-by: Moshe Benji <moshe.benji@intel.com> Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index c1684bf..e078c70 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -44,6 +44,7 @@
#include "interworking.h"
#include "mesh.h"
#include "mesh_mpm.h"
+#include "wmm_ac.h"
#ifndef CONFIG_NO_SCAN_PROCESSING
@@ -2037,6 +2038,12 @@ static void wpa_supplicant_event_assoc(struct wpa_supplicant *wpa_s,
#endif /* CONFIG_IBSS_RSN */
wpas_wps_notify_assoc(wpa_s, bssid);
+
+ if (data) {
+ wmm_ac_notify_assoc(wpa_s, data->assoc_info.resp_ies,
+ data->assoc_info.resp_ies_len,
+ &data->assoc_info.wmm_params);
+ }
}
@@ -2124,6 +2131,8 @@ static void wpa_supplicant_event_disassoc_finish(struct wpa_supplicant *wpa_s,
return;
}
+ wmm_ac_notify_disassoc(wpa_s);
+
if (could_be_psk_mismatch(wpa_s, reason_code, locally_generated)) {
wpa_msg(wpa_s, MSG_INFO, "WPA: 4-Way Handshake failed - "
"pre-shared key may be incorrect");