aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches/121-ibss_hostap.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-06-02 02:22:01 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-06-02 02:22:01 +0000
commit47ecff5cf8e907af397624a3bf09ba2a293053a8 (patch)
treeefce325f9c067338a32d1df74f26e1cfb6b97ccd /package/madwifi/patches/121-ibss_hostap.patch
parente19eb3d8286ad66f455721f8b7f8260bce5e4016 (diff)
downloadupstream-47ecff5cf8e907af397624a3bf09ba2a293053a8.tar.gz
upstream-47ecff5cf8e907af397624a3bf09ba2a293053a8.tar.bz2
upstream-47ecff5cf8e907af397624a3bf09ba2a293053a8.zip
madwifi update: include upstream fixes for ff handling, disable ff by default (not reliable enough), wpa in ap mode should be working now
SVN-Revision: 7440
Diffstat (limited to 'package/madwifi/patches/121-ibss_hostap.patch')
-rw-r--r--package/madwifi/patches/121-ibss_hostap.patch19
1 files changed, 9 insertions, 10 deletions
diff --git a/package/madwifi/patches/121-ibss_hostap.patch b/package/madwifi/patches/121-ibss_hostap.patch
index 8a843a279b..d43618b733 100644
--- a/package/madwifi/patches/121-ibss_hostap.patch
+++ b/package/madwifi/patches/121-ibss_hostap.patch
@@ -112,16 +112,15 @@ diff -ur madwifi.old/ath/if_ath.c madwifi.dev/ath/if_ath.c
sc->sc_nstavaps--;
sc->sc_nostabeacons = 0;
} else if (vap->iv_opmode == IEEE80211_M_MONITOR)
-@@ -3356,7 +3347,8 @@
- HAL_RX_FILTER_MCAST;
- if (ic->ic_opmode != IEEE80211_M_STA)
- rfilt |= HAL_RX_FILTER_PROBEREQ;
-- if (ic->ic_opmode != IEEE80211_M_HOSTAP && (dev->flags & IFF_PROMISC))
-+ if ((ic->ic_opmode != IEEE80211_M_HOSTAP && (dev->flags & IFF_PROMISC)) ||
-+ ((sc->sc_nvaps > 0) && (sc->sc_nibssvaps > 0)))
- rfilt |= HAL_RX_FILTER_PROM;
- if (ic->ic_opmode == IEEE80211_M_STA ||
- sc->sc_opmode == HAL_M_IBSS || /* NB: AHDEMO too */
+@@ -3368,7 +3367,7 @@
+ ((ic->ic_opmode == IEEE80211_M_HOSTAP) &&
+ (ic->ic_protmode != IEEE80211_PROT_NONE)))
+ rfilt |= HAL_RX_FILTER_BEACON;
+- if (sc->sc_nmonvaps > 0)
++ if ((sc->sc_nmonvaps > 0) || ((sc->sc_nvaps > 0) && (sc->sc_nibssvaps > 0)))
+ rfilt |= (HAL_RX_FILTER_CONTROL | HAL_RX_FILTER_BEACON |
+ HAL_RX_FILTER_PROBEREQ | HAL_RX_FILTER_PROM);
+ return rfilt;
@@ -5809,12 +5801,19 @@
type = ieee80211_input(ni, skb, rs->rs_rssi, rs->rs_tstamp);
ieee80211_unref_node(&ni);