summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-11-01 10:46:36 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2009-11-01 10:46:36 +0000
commit5a58232dfa18a1f8fbb4becc9f2df586f9039cce (patch)
tree9ba874181e842beb12cb5a911e0410c35a4b0182
parent76e192d94ce5ad16ea4754c4559ba9e1249f410e (diff)
[package] fix hostapd frame injection in mac80211, backport 9b1ce526eb917c8b5c8497c327768130ee683392 (#6070)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18258 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/mac80211/patches/200-mac80211_fix_incorrect_seq_num_hostapd.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/package/mac80211/patches/200-mac80211_fix_incorrect_seq_num_hostapd.patch b/package/mac80211/patches/200-mac80211_fix_incorrect_seq_num_hostapd.patch
new file mode 100644
index 000000000..5762c101f
--- /dev/null
+++ b/package/mac80211/patches/200-mac80211_fix_incorrect_seq_num_hostapd.patch
@@ -0,0 +1,44 @@
+From 9b1ce526eb917c8b5c8497c327768130ee683392 Mon Sep 17 00:00:00 2001
+From: =?utf8?q?Bj=C3=B6rn=20Smedman?= <bjorn.smedman@venatech.se>
+Date: Sat, 24 Oct 2009 20:55:09 +0200
+Subject: [PATCH] mac80211: fix for incorrect sequence number on hostapd injected frames
+MIME-Version: 1.0
+Content-Type: text/plain; charset=utf8
+Content-Transfer-Encoding: 8bit
+
+When hostapd injects a frame, e.g. an authentication or association
+response, mac80211 looks for a suitable access point virtual interface
+to associate the frame with based on its source address. This makes it
+possible e.g. to correctly assign sequence numbers to the frames.
+
+A small typo in the ethernet address comparison statement caused a
+failure to find a suitable ap interface. Sequence numbers on such
+frames where therefore left unassigned causing some clients
+(especially windows-based 11b/g clients) to reject them and fail to
+authenticate or associate with the access point. This patch fixes the
+typo in the address comparison statement.
+
+Signed-off-by: Björn Smedman <bjorn.smedman@venatech.se>
+Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
+Cc: stable@kernel.org
+Signed-off-by: John W. Linville <linville@tuxdriver.com>
+---
+ net/mac80211/tx.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
+index db4bda6..eaa4118 100644
+--- a/net/mac80211/tx.c
++++ b/net/mac80211/tx.c
+@@ -1445,7 +1445,7 @@ static void ieee80211_xmit(struct ieee80211_sub_if_data *sdata,
+ if (tmp_sdata->vif.type != NL80211_IFTYPE_AP)
+ continue;
+ if (compare_ether_addr(tmp_sdata->dev->dev_addr,
+- hdr->addr2)) {
++ hdr->addr2) == 0) {
+ dev_hold(tmp_sdata->dev);
+ dev_put(sdata->dev);
+ sdata = tmp_sdata;
+--
+1.6.5.1
+