Linux wireless drivers development
 help / color / mirror / Atom feed
* [PATCH] mac80211: fix for incorrect sequence number on hostapd injected frames
@ 2009-10-24 18:55 Björn Smedman
  2009-10-25 18:59 ` Johannes Berg
  2009-10-27 11:09 ` AW: " Joerg Pommnitz
  0 siblings, 2 replies; 4+ messages in thread
From: Björn Smedman @ 2009-10-24 18:55 UTC (permalink / raw)
  To: linville
  Cc: linux-wireless, Johannes Berg, Jouni Malinen, Joerg Pommnitz,
	Will Dyson

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>
---
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;

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-27 11:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-24 18:55 [PATCH] mac80211: fix for incorrect sequence number on hostapd injected frames Björn Smedman
2009-10-25 18:59 ` Johannes Berg
2009-10-26 12:18   ` Michael Buesch
2009-10-27 11:09 ` AW: " Joerg Pommnitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox