ath9k: fix adhoc beacon issues (#9163)
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 571-ath9k_fix_beacon_config_mode.patch
1 --- a/drivers/net/wireless/ath/ath9k/beacon.c
2 +++ b/drivers/net/wireless/ath/ath9k/beacon.c
3 @@ -700,7 +700,7 @@ void ath_beacon_config(struct ath_softc
4 if (cur_conf->dtim_period == 0)
5 cur_conf->dtim_period = 1;
6
7 - switch (iftype) {
8 + switch (sc->sc_ah->opmode) {
9 case NL80211_IFTYPE_AP:
10 ath_beacon_config_ap(sc, cur_conf);
11 break;