aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2014-10-16 22:10:19 -0400
committerJohn W. Linville <linville@tuxdriver.com>2014-10-27 14:16:15 -0400
commit91e6ceb354289ef1b143735b218599b5ad1b58c8 (patch)
tree228af2d39eba3c4367a2de2becead341e83c9987
parente2d389b5aa3741431fc89fca993b7818545dc0f1 (diff)
ath9k: Send AUTHORIZED event only for station mode
ATH_CHANCTX_EVENT_AUTHORIZED is required to trigger the MCC scheduler when a station interface becomes authorized. But, since the driver gets station state notifications when the current operating mode is AP too, make sure that we send ATH_CHANCTX_EVENT_AUTHORIZED only when the interface is in station mode. Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 2048ef1d8369..0545fe64e1e5 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -1590,10 +1590,12 @@ static int ath9k_sta_state(struct ieee80211_hw *hw,
1590 } 1590 }
1591 1591
1592 if (ath9k_is_chanctx_enabled()) { 1592 if (ath9k_is_chanctx_enabled()) {
1593 if (old_state == IEEE80211_STA_ASSOC && 1593 if (vif->type == NL80211_IFTYPE_STATION) {
1594 new_state == IEEE80211_STA_AUTHORIZED) 1594 if (old_state == IEEE80211_STA_ASSOC &&
1595 ath_chanctx_event(sc, vif, 1595 new_state == IEEE80211_STA_AUTHORIZED)
1596 ATH_CHANCTX_EVENT_AUTHORIZED); 1596 ath_chanctx_event(sc, vif,
1597 ATH_CHANCTX_EVENT_AUTHORIZED);
1598 }
1597 } 1599 }
1598 1600
1599 return ret; 1601 return ret;