aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/main.c
diff options
context:
space:
mode:
authorDai Shuibing <shuibing@qca.qualcomm.com>2011-11-03 05:39:39 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2011-11-13 03:57:38 -0500
commit30677ae015ade68a315e66385f64448c532ce39a (patch)
treeee568604753bb3ce8d2e44be7864cd55ca71f981 /drivers/net/wireless/ath/ath6kl/main.c
parentb8214df1d963cad2aae1479b86452e205312004e (diff)
ath6kl: Indicate WAPI IE from (Re)Association Request frame
This is needed to know whether the STA requests WAPI to be used and if so, with what AKM and cipher. Signed-off-by: Dai Shuibing <shuibing@qca.qualcomm.com> Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/main.c')
-rw-r--r--drivers/net/wireless/ath/ath6kl/main.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c
index 5e5f4ca8f3f0..1195f9408857 100644
--- a/drivers/net/wireless/ath/ath6kl/main.c
+++ b/drivers/net/wireless/ath/ath6kl/main.c
@@ -534,6 +534,18 @@ void ath6kl_connect_ap_mode_sta(struct ath6kl_vif *vif, u16 aid, u8 *mac_addr,
534 wpa_ie = pos; /* WPS IE */ 534 wpa_ie = pos; /* WPS IE */
535 break; /* overrides WPA/RSN IE */ 535 break; /* overrides WPA/RSN IE */
536 } 536 }
537 } else if (pos[0] == 0x44 && wpa_ie == NULL) {
538 /*
539 * Note: WAPI Parameter Set IE re-uses Element ID that
540 * was officially allocated for BSS AC Access Delay. As
541 * such, we need to be a bit more careful on when
542 * parsing the frame. However, BSS AC Access Delay
543 * element is not supposed to be included in
544 * (Re)Association Request frames, so this should not
545 * cause problems.
546 */
547 wpa_ie = pos; /* WAPI IE */
548 break;
537 } 549 }
538 pos += 2 + pos[1]; 550 pos += 2 + pos[1];
539 } 551 }