summaryrefslogtreecommitdiff
path: root/package/madwifi
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-07-30 07:05:12 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-07-30 07:05:12 +0000
commit10b74a2455971310bf22d3d9c2127e4bc6f4225e (patch)
tree0983531e0ec9adea28cd5eb425d4aa351a311362 /package/madwifi
parent55b55f686124a40c859dbb0607af513263f1016f (diff)
downloadmtk-20170518-10b74a2455971310bf22d3d9c2127e4bc6f4225e.zip
mtk-20170518-10b74a2455971310bf22d3d9c2127e4bc6f4225e.tar.gz
mtk-20170518-10b74a2455971310bf22d3d9c2127e4bc6f4225e.tar.bz2
madwifi: add some extra sanity checking
SVN-Revision: 12006
Diffstat (limited to 'package/madwifi')
-rw-r--r--package/madwifi/patches/373-sanity_check.patch12
-rw-r--r--package/madwifi/patches/405-retransmit_check.patch2
2 files changed, 13 insertions, 1 deletions
diff --git a/package/madwifi/patches/373-sanity_check.patch b/package/madwifi/patches/373-sanity_check.patch
new file mode 100644
index 0000000..9c18a74
--- /dev/null
+++ b/package/madwifi/patches/373-sanity_check.patch
@@ -0,0 +1,12 @@
+--- a/net80211/ieee80211_input.c
++++ b/net80211/ieee80211_input.c
+@@ -238,6 +238,9 @@
+ if (vap->iv_opmode == IEEE80211_M_MONITOR)
+ goto out;
+
++ if (!skb->data)
++ goto out;
++
+ if (skb->len < sizeof(struct ieee80211_frame_min)) {
+ IEEE80211_DISCARD_MAC(vap, IEEE80211_MSG_ANY,
+ ni->ni_macaddr, NULL,
diff --git a/package/madwifi/patches/405-retransmit_check.patch b/package/madwifi/patches/405-retransmit_check.patch
index 6339014..66db061 100644
--- a/package/madwifi/patches/405-retransmit_check.patch
+++ b/package/madwifi/patches/405-retransmit_check.patch
@@ -11,7 +11,7 @@
#define IEEE80211_QOS_TXOP 0x00ff
--- a/net80211/ieee80211_input.c
+++ b/net80211/ieee80211_input.c
-@@ -414,7 +414,7 @@
+@@ -417,7 +417,7 @@
tid = 0;
rxseq = le16toh(*(__le16 *)wh->i_seq);
if ((wh->i_fc[1] & IEEE80211_FC1_RETRY) &&