diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-05-21 18:23:53 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-05-21 18:23:53 +0000 |
commit | f5918f5a0068e2df9a35da907b0fb338e954cdc2 (patch) | |
tree | a56cbfe3180c863758bdf5a0c1a7f257d977edbf | |
parent | 220751e8ab5e4a805d0b7acebe1164d0c32e621b (diff) | |
download | upstream-f5918f5a0068e2df9a35da907b0fb338e954cdc2.tar.gz upstream-f5918f5a0068e2df9a35da907b0fb338e954cdc2.tar.bz2 upstream-f5918f5a0068e2df9a35da907b0fb338e954cdc2.zip |
madwifi: fix a rare ad-hoc mode crash
SVN-Revision: 15964
-rw-r--r-- | package/madwifi/patches/435-ibss_neighbor_fix.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/package/madwifi/patches/435-ibss_neighbor_fix.patch b/package/madwifi/patches/435-ibss_neighbor_fix.patch new file mode 100644 index 0000000000..d66af9b240 --- /dev/null +++ b/package/madwifi/patches/435-ibss_neighbor_fix.patch @@ -0,0 +1,11 @@ +--- a/net80211/ieee80211_input.c ++++ b/net80211/ieee80211_input.c +@@ -313,7 +313,7 @@ ieee80211_input(struct ieee80211vap * va + if (type == IEEE80211_FC0_TYPE_DATA && ni == vap->iv_bss && + !IEEE80211_ADDR_EQ(vap->iv_bss->ni_macaddr, wh->i_addr2)) { + /* Try to find sender in local node table. */ +- ni = ieee80211_find_node(vap->iv_bss->ni_table, wh->i_addr2); ++ ni = ieee80211_find_node(&ic->ic_sta, wh->i_addr2); + if (ni == NULL) { + /* + * Fake up a node for this newly discovered |