aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/beacon.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-04-01 21:39:48 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-04-07 15:34:13 -0400
commit26cd322bacd3d65fffef6f8418c2fdad5b42e4b5 (patch)
treeb1bda8c764912d6be3ff22ba681459d725154c65 /drivers/net/wireless/ath/ath9k/beacon.c
parent5e65968a10bb628b87024161c9adc8dbd886b47a (diff)
ath9k: use the hw opmode to select the beacon timer mode
Since the beacon timers are global, the individual vif type should not be used to determine the beacon timer configuration mode, use the global opmode instead. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/beacon.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/beacon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c
index 24861b247b44..f6885278398a 100644
--- a/drivers/net/wireless/ath/ath9k/beacon.c
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
@@ -700,7 +700,7 @@ void ath_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif)
700 if (cur_conf->dtim_period == 0) 700 if (cur_conf->dtim_period == 0)
701 cur_conf->dtim_period = 1; 701 cur_conf->dtim_period = 1;
702 702
703 switch (iftype) { 703 switch (sc->sc_ah->opmode) {
704 case NL80211_IFTYPE_AP: 704 case NL80211_IFTYPE_AP:
705 ath_beacon_config_ap(sc, cur_conf); 705 ath_beacon_config_ap(sc, cur_conf);
706 break; 706 break;