Skip to content

Commit

Permalink
mac80211: Fix probe request filtering in IBSS mode
Browse files Browse the repository at this point in the history
We only reply to probe request if either the requested SSID is the
broadcast SSID or if the requested SSID matches our own SSID. This
latter case was not properly handled since we were replying to different
SSID with the same length as our own SSID.

Signed-off-by: Benoit Papillault <[email protected]>
Cc: [email protected]
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
Benoit Papillault authored and linvjw committed Feb 8, 2010
1 parent 391ae22 commit 0da780c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/ibss.c
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ static void ieee80211_rx_mgmt_probe_req(struct ieee80211_sub_if_data *sdata,
}
if (pos[1] != 0 &&
(pos[1] != ifibss->ssid_len ||
!memcmp(pos + 2, ifibss->ssid, ifibss->ssid_len))) {
memcmp(pos + 2, ifibss->ssid, ifibss->ssid_len))) {
/* Ignore ProbeReq for foreign SSID */
return;
}
Expand Down

0 comments on commit 0da780c

Please sign in to comment.