diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-07-18 22:57:30 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-07-18 22:57:30 +0000 |
commit | 5a0ea239626e21eb9962625668110ce3b14c8876 (patch) | |
tree | 7cb89031f6019a89c115b7ad4ffaf1975f5bd699 /package/madwifi/patches-testing/325-sta_node_leave.patch | |
parent | c8f44be64bbacd8d09b3ef62c557d3d3f6691fd2 (diff) | |
download | master-187ad058-5a0ea239626e21eb9962625668110ce3b14c8876.tar.gz master-187ad058-5a0ea239626e21eb9962625668110ce3b14c8876.tar.bz2 master-187ad058-5a0ea239626e21eb9962625668110ce3b14c8876.zip |
rename patches-r3776 to patches-testing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11868 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches-testing/325-sta_node_leave.patch')
-rw-r--r-- | package/madwifi/patches-testing/325-sta_node_leave.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/package/madwifi/patches-testing/325-sta_node_leave.patch b/package/madwifi/patches-testing/325-sta_node_leave.patch new file mode 100644 index 0000000000..6b0dcb8e80 --- /dev/null +++ b/package/madwifi/patches-testing/325-sta_node_leave.patch @@ -0,0 +1,59 @@ +Drop stale AP nodes from the client list when disconnecting. +Fixes some reassoc issues. + +Signed-off-by: Felix Fietkau <nbd@openwrt.org> + +--- a/net80211/ieee80211_proto.c ++++ b/net80211/ieee80211_proto.c +@@ -1352,7 +1352,7 @@ + IEEE80211_SEND_MGMT(ni, + IEEE80211_FC0_SUBTYPE_DISASSOC, + IEEE80211_REASON_ASSOC_LEAVE); +- ieee80211_sta_leave(ni); ++ ieee80211_node_leave(ni); + break; + case IEEE80211_M_HOSTAP: + ieee80211_iterate_nodes(&ic->ic_sta, +@@ -1362,6 +1362,7 @@ + break; + } + goto reset; ++ case IEEE80211_S_AUTH: + case IEEE80211_S_ASSOC: + switch (vap->iv_opmode) { + case IEEE80211_M_STA: +@@ -1380,7 +1381,6 @@ + case IEEE80211_S_SCAN: + ieee80211_cancel_scan(vap); + goto reset; +- case IEEE80211_S_AUTH: + reset: + ieee80211_reset_bss(vap); + break; +@@ -1436,7 +1436,7 @@ + break; + case IEEE80211_S_RUN: /* beacon miss */ + if (vap->iv_opmode == IEEE80211_M_STA) { +- ieee80211_sta_leave(ni); ++ ieee80211_node_leave(ni); + vap->iv_flags &= ~IEEE80211_F_SIBSS; /* XXX */ + if (ic->ic_roaming == IEEE80211_ROAMING_AUTO) + ieee80211_check_scan(vap, +@@ -1487,7 +1487,7 @@ + vap->iv_state = ostate; /* stay RUN */ + break; + case IEEE80211_FC0_SUBTYPE_DEAUTH: +- ieee80211_sta_leave(ni); ++ ieee80211_node_leave(ni); + if (ic->ic_roaming == IEEE80211_ROAMING_AUTO) { + /* try to reauth */ + IEEE80211_SEND_MGMT(ni, +@@ -1514,7 +1514,7 @@ + IEEE80211_FC0_SUBTYPE_ASSOC_REQ, 0); + break; + case IEEE80211_S_RUN: +- ieee80211_sta_leave(ni); ++ ieee80211_node_leave(ni); + if (ic->ic_roaming == IEEE80211_ROAMING_AUTO) { + /* NB: caller specifies ASSOC/REASSOC by arg */ + IEEE80211_SEND_MGMT(ni, arg ? |