summaryrefslogtreecommitdiff
path: root/package/madwifi/patches/441-fix_ibss_node_handling.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-01-24 23:39:00 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-01-24 23:39:00 +0000
commite85f50118cb48d03bf3c83e559f3fb815d11ce7b (patch)
tree236fa8279c175edff0708ea7a66d51f9476a1958 /package/madwifi/patches/441-fix_ibss_node_handling.patch
parent6351d88e29a6e0ffc96d11d33d22eafdbfd1a41b (diff)
downloadmtk-20170518-e85f50118cb48d03bf3c83e559f3fb815d11ce7b.zip
mtk-20170518-e85f50118cb48d03bf3c83e559f3fb815d11ce7b.tar.gz
mtk-20170518-e85f50118cb48d03bf3c83e559f3fb815d11ce7b.tar.bz2
madwifi: fix some potential null pointer derefs with wds
SVN-Revision: 19322
Diffstat (limited to 'package/madwifi/patches/441-fix_ibss_node_handling.patch')
-rw-r--r--package/madwifi/patches/441-fix_ibss_node_handling.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/madwifi/patches/441-fix_ibss_node_handling.patch b/package/madwifi/patches/441-fix_ibss_node_handling.patch
index b12cf67..b12930f 100644
--- a/package/madwifi/patches/441-fix_ibss_node_handling.patch
+++ b/package/madwifi/patches/441-fix_ibss_node_handling.patch
@@ -44,8 +44,8 @@
if (dir != IEEE80211_FC1_DIR_NODS) {
IEEE80211_DISCARD(vap, IEEE80211_MSG_ANY,
wh, "data", "invalid dir 0x%x", dir);
-@@ -3556,6 +3561,11 @@ ieee80211_recv_mgmt(struct ieee80211vap
- } else if (vap->iv_opmode == IEEE80211_M_WDS) {
+@@ -3558,6 +3563,11 @@ ieee80211_recv_mgmt(struct ieee80211vap
+ } else if ((vap->iv_opmode == IEEE80211_M_WDS) && vap->iv_wdsnode) {
found = 1;
ni = ni_or_null = vap->iv_wdsnode;
+ } else if (vap->iv_opmode == IEEE80211_M_IBSS) {
@@ -56,7 +56,7 @@
}
IEEE80211_UNLOCK_IRQ(vap->iv_ic);
-@@ -3684,19 +3694,8 @@ ieee80211_recv_mgmt(struct ieee80211vap
+@@ -3686,19 +3696,8 @@ ieee80211_recv_mgmt(struct ieee80211vap
vap->iv_stats.is_rx_ssidmismatch++; /*XXX*/
return;
}