diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-10-18 17:38:59 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-10-18 17:38:59 +0000 |
commit | f0d9e712e459332ec527802f7eaca104c47b14c2 (patch) | |
tree | b03de3247dbdd3f785bda5318729be5ab75f5f95 /package/kernel/mac80211/patches/314-ath9k-Send-AUTHORIZED-event-only-for-station-mode.patch | |
parent | 6d3fd947e4aa0430f592e9e3b0eb6b78cbe21f7b (diff) | |
download | mtk-20170518-f0d9e712e459332ec527802f7eaca104c47b14c2.zip mtk-20170518-f0d9e712e459332ec527802f7eaca104c47b14c2.tar.gz mtk-20170518-f0d9e712e459332ec527802f7eaca104c47b14c2.tar.bz2 |
mac80211: update to 2014-10-08
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42952
Diffstat (limited to 'package/kernel/mac80211/patches/314-ath9k-Send-AUTHORIZED-event-only-for-station-mode.patch')
-rw-r--r-- | package/kernel/mac80211/patches/314-ath9k-Send-AUTHORIZED-event-only-for-station-mode.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/314-ath9k-Send-AUTHORIZED-event-only-for-station-mode.patch b/package/kernel/mac80211/patches/314-ath9k-Send-AUTHORIZED-event-only-for-station-mode.patch new file mode 100644 index 0000000..4c56442 --- /dev/null +++ b/package/kernel/mac80211/patches/314-ath9k-Send-AUTHORIZED-event-only-for-station-mode.patch @@ -0,0 +1,33 @@ +From: Sujith Manoharan <c_manoha@qca.qualcomm.com> +Date: Fri, 17 Oct 2014 07:40:19 +0530 +Subject: [PATCH] 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> +--- + +--- 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 ieee80 + } + + if (ath9k_is_chanctx_enabled()) { +- if (old_state == IEEE80211_STA_ASSOC && +- new_state == IEEE80211_STA_AUTHORIZED) +- ath_chanctx_event(sc, vif, +- ATH_CHANCTX_EVENT_AUTHORIZED); ++ if (vif->type == NL80211_IFTYPE_STATION) { ++ if (old_state == IEEE80211_STA_ASSOC && ++ new_state == IEEE80211_STA_AUTHORIZED) ++ ath_chanctx_event(sc, vif, ++ ATH_CHANCTX_EVENT_AUTHORIZED); ++ } + } + + return ret; |