aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-10-07 01:40:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-10-07 01:40:09 +0000
commitb1d09b7bde89ece5e6cf40c8f8b94a6db143480a (patch)
tree867a887f494b117fcbce70b6c01406f4b705e069 /package
parentc2f49151e9c3d9c9aee10d356d2c7d58b6171ea8 (diff)
downloadupstream-b1d09b7bde89ece5e6cf40c8f8b94a6db143480a.tar.gz
upstream-b1d09b7bde89ece5e6cf40c8f8b94a6db143480a.tar.bz2
upstream-b1d09b7bde89ece5e6cf40c8f8b94a6db143480a.zip
fix mode setup for ibss/ahdemo - preserve existing modes and use HOSTAP mode for AHDEMO instead of IBSS to prevent unwanted IBSS merges
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12884 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/madwifi/patches/381-ibss_modes.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/package/madwifi/patches/381-ibss_modes.patch b/package/madwifi/patches/381-ibss_modes.patch
new file mode 100644
index 0000000000..1ce295eea3
--- /dev/null
+++ b/package/madwifi/patches/381-ibss_modes.patch
@@ -0,0 +1,23 @@
+--- a/ath/if_ath.c
++++ b/ath/if_ath.c
+@@ -1260,7 +1260,10 @@
+ case IEEE80211_M_IBSS:
+ if ((sc->sc_nvaps != 0) && (ic->ic_opmode == IEEE80211_M_STA))
+ return NULL;
+- ic_opmode = opmode;
++ if (ic->ic_opmode == IEEE80211_M_HOSTAP)
++ ic_opmode = ic->ic_opmode;
++ else
++ ic_opmode = opmode;
+ break;
+ case IEEE80211_M_AHDEMO:
+ case IEEE80211_M_MONITOR:
+@@ -1455,7 +1458,7 @@
+ * frames. Other modes carry over directly to the HAL.
+ */
+ if (ic->ic_opmode == IEEE80211_M_AHDEMO)
+- sc->sc_opmode = HAL_M_IBSS;
++ sc->sc_opmode = HAL_M_HOSTAP;
+ else
+ sc->sc_opmode = (HAL_OPMODE) ic->ic_opmode; /* NB: compatible */
+