diff options
author | Alexandros C. Couloumbis <alex@ozo.com> | 2010-11-12 15:14:27 +0000 |
---|---|---|
committer | Alexandros C. Couloumbis <alex@ozo.com> | 2010-11-12 15:14:27 +0000 |
commit | 1c346885afb1d8dad16c48f5e28bf31e2692b0e9 (patch) | |
tree | 682a176590b2af13b6440a0e7e2e4c40b528138b /package/madwifi/patches/387-maxassoc.patch | |
parent | bcc4ec3c11cc6035f29f55a422199d4523e7d252 (diff) | |
download | upstream-1c346885afb1d8dad16c48f5e28bf31e2692b0e9.tar.gz upstream-1c346885afb1d8dad16c48f5e28bf31e2692b0e9.tar.bz2 upstream-1c346885afb1d8dad16c48f5e28bf31e2692b0e9.zip |
package/madwifi: refresh madwifi patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23971 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches/387-maxassoc.patch')
-rw-r--r-- | package/madwifi/patches/387-maxassoc.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/madwifi/patches/387-maxassoc.patch b/package/madwifi/patches/387-maxassoc.patch index df2b7fd1f2..79e5b2f4fc 100644 --- a/package/madwifi/patches/387-maxassoc.patch +++ b/package/madwifi/patches/387-maxassoc.patch @@ -56,14 +56,14 @@ /* --- a/net80211/ieee80211_input.c +++ b/net80211/ieee80211_input.c -@@ -4020,7 +4020,26 @@ ieee80211_recv_mgmt(struct ieee80211vap +@@ -4020,7 +4020,26 @@ ieee80211_recv_mgmt(struct ieee80211vap vap->iv_stats.is_rx_assoc_norate++; return; } + if (vap->iv_max_nodes > 0) { + unsigned int active_nodes = 0; + struct ieee80211_node *tni; -+ + + IEEE80211_NODE_TABLE_LOCK_IRQ(&ic->ic_sta); + TAILQ_FOREACH(tni, &ic->ic_sta.nt_node, ni_list) { + if (tni->ni_vap != vap) @@ -73,7 +73,7 @@ + active_nodes++; + } + IEEE80211_NODE_TABLE_UNLOCK_IRQ(&ic->ic_sta); - ++ + if (active_nodes >= vap->iv_max_nodes) { + /* too many nodes connected */ + ieee80211_node_leave(ni); |