Commit 9b1ce526eb917c8b5c8497c327768130ee683392
Committed by
John W. Linville
1 parent
d18ba452d7
Exists in
master
and in
7 other branches
mac80211: fix for incorrect sequence number on hostapd injected frames
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
net/mac80211/tx.c
... | ... | @@ -1445,7 +1445,7 @@ |
1445 | 1445 | if (tmp_sdata->vif.type != NL80211_IFTYPE_AP) |
1446 | 1446 | continue; |
1447 | 1447 | if (compare_ether_addr(tmp_sdata->dev->dev_addr, |
1448 | - hdr->addr2)) { | |
1448 | + hdr->addr2) == 0) { | |
1449 | 1449 | dev_hold(tmp_sdata->dev); |
1450 | 1450 | dev_put(sdata->dev); |
1451 | 1451 | sdata = tmp_sdata; |