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;
8 + switch (sc->sc_ah->opmode) {
9 case NL80211_IFTYPE_AP:
10 ath_beacon_config_ap(sc, cur_conf);