aboutsummaryrefslogtreecommitdiffstats
path: root/package/madwifi/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-05-21 18:23:53 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-05-21 18:23:53 +0000
commit64d3aacbd0b18f7093b8518edb4eb3360614fe66 (patch)
tree6001984f2ee3ca3db565ff1f0d1474d76268ed37 /package/madwifi/patches
parent6dc08e81b0027389f82461905624907667469205 (diff)
downloadupstream-64d3aacbd0b18f7093b8518edb4eb3360614fe66.tar.gz
upstream-64d3aacbd0b18f7093b8518edb4eb3360614fe66.tar.bz2
upstream-64d3aacbd0b18f7093b8518edb4eb3360614fe66.zip
madwifi: fix a rare ad-hoc mode crash
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15964 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/madwifi/patches')
-rw-r--r--package/madwifi/patches/435-ibss_neighbor_fix.patch11
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