ath9k: fix adhoc beacon issues (#9163, backport of r26395)
[openwrt-10.03/.git] / package / mac80211 / patches / 571-ath9k_fix_beacon_config_mode.patch
diff --git a/package/mac80211/patches/571-ath9k_fix_beacon_config_mode.patch b/package/mac80211/patches/571-ath9k_fix_beacon_config_mode.patch
new file mode 100644 (file)
index 0000000..4ba74f8
--- /dev/null
@@ -0,0 +1,11 @@
+--- 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 
+       if (cur_conf->dtim_period == 0)
+               cur_conf->dtim_period = 1;
+-      switch (iftype) {
++      switch (sc->sc_ah->opmode) {
+       case NL80211_IFTYPE_AP:
+               ath_beacon_config_ap(sc, cur_conf);
+               break;