diff options
author | Thomas Pedersen <c_tpeder@qca.qualcomm.com> | 2012-07-27 21:13:27 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-10-24 04:49:42 -0400 |
commit | f21243a82253e34f64187aeb3d7f93fb7cb92536 (patch) | |
tree | bb3559e9eece36e4e6a8bcb50eaaefbbaab22f5d | |
parent | b5495e666d0b83553f6330e7ba33c0cee2271332 (diff) |
ath6kl: reconfigure RSN capabilities when restarting AP
If the firmware decides to initiate a channel switch on an AP vif
running an RSN BSS, reconfigure the saved RSN IE capabilities as well.
Fixes a bug where the beacon and 4-way handshake would have a capability
mismatch after a channel switch, since the firmware apparently clears
these on an AP disconnect.
Signed-off-by: Thomas Pedersen <c_tpeder@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/cfg80211.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/core.h | 1 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/main.c | 12 |
3 files changed, 14 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index e8b9c1e2a04c..75ddfafb11b7 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c | |||
@@ -2924,6 +2924,7 @@ static int ath6kl_start_ap(struct wiphy *wiphy, struct net_device *dev, | |||
2924 | WLAN_EID_RSN, WMI_RSN_IE_CAPB, | 2924 | WLAN_EID_RSN, WMI_RSN_IE_CAPB, |
2925 | (const u8 *) &rsn_capab, | 2925 | (const u8 *) &rsn_capab, |
2926 | sizeof(rsn_capab)); | 2926 | sizeof(rsn_capab)); |
2927 | vif->rsn_capab = rsn_capab; | ||
2927 | if (res < 0) | 2928 | if (res < 0) |
2928 | return res; | 2929 | return res; |
2929 | } | 2930 | } |
diff --git a/drivers/net/wireless/ath/ath6kl/core.h b/drivers/net/wireless/ath/ath6kl/core.h index baf149ef3465..a95bf6ab7ec1 100644 --- a/drivers/net/wireless/ath/ath6kl/core.h +++ b/drivers/net/wireless/ath/ath6kl/core.h | |||
@@ -605,6 +605,7 @@ struct ath6kl_vif { | |||
605 | struct net_device_stats net_stats; | 605 | struct net_device_stats net_stats; |
606 | struct target_stats target_stats; | 606 | struct target_stats target_stats; |
607 | struct wmi_connect_cmd profile; | 607 | struct wmi_connect_cmd profile; |
608 | u16 rsn_capab; | ||
608 | 609 | ||
609 | struct list_head mc_filter; | 610 | struct list_head mc_filter; |
610 | }; | 611 | }; |
diff --git a/drivers/net/wireless/ath/ath6kl/main.c b/drivers/net/wireless/ath/ath6kl/main.c index eca4d4704edc..9533558a6235 100644 --- a/drivers/net/wireless/ath/ath6kl/main.c +++ b/drivers/net/wireless/ath/ath6kl/main.c | |||
@@ -608,6 +608,18 @@ static int ath6kl_commit_ch_switch(struct ath6kl_vif *vif, u16 channel) | |||
608 | 608 | ||
609 | switch (vif->nw_type) { | 609 | switch (vif->nw_type) { |
610 | case AP_NETWORK: | 610 | case AP_NETWORK: |
611 | /* | ||
612 | * reconfigure any saved RSN IE capabilites in the beacon / | ||
613 | * probe response to stay in sync with the supplicant. | ||
614 | */ | ||
615 | if (vif->rsn_capab && | ||
616 | test_bit(ATH6KL_FW_CAPABILITY_RSN_CAP_OVERRIDE, | ||
617 | ar->fw_capabilities)) | ||
618 | ath6kl_wmi_set_ie_cmd(ar->wmi, vif->fw_vif_idx, | ||
619 | WLAN_EID_RSN, WMI_RSN_IE_CAPB, | ||
620 | (const u8 *) &vif->rsn_capab, | ||
621 | sizeof(vif->rsn_capab)); | ||
622 | |||
611 | return ath6kl_wmi_ap_profile_commit(ar->wmi, vif->fw_vif_idx, | 623 | return ath6kl_wmi_ap_profile_commit(ar->wmi, vif->fw_vif_idx, |
612 | &vif->profile); | 624 | &vif->profile); |
613 | default: | 625 | default: |