|
@@ -700,7 +700,7 @@ void ath_beacon_config(struct ath_softc *sc, struct ieee80211_vif *vif)
|
|
if (cur_conf->dtim_period == 0)
|
|
if (cur_conf->dtim_period == 0)
|
|
cur_conf->dtim_period = 1;
|
|
cur_conf->dtim_period = 1;
|
|
|
|
|
|
- switch (iftype) {
|
|
|
|
|
|
+ switch (sc->sc_ah->opmode) {
|
|
case NL80211_IFTYPE_AP:
|
|
case NL80211_IFTYPE_AP:
|
|
ath_beacon_config_ap(sc, cur_conf);
|
|
ath_beacon_config_ap(sc, cur_conf);
|
|
break;
|
|
break;
|