From: Benoit Papillault Date: Fri, 5 Feb 2010 00:21:03 +0000 (+0100) Subject: mac80211: Fix probe request filtering in IBSS mode X-Git-Tag: v2.6.33~38^2~10^2~5 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=0da780c269957783d341fc3559e6b4c9912af7b4;p=~shefty%2Frdma-dev.git mac80211: Fix probe request filtering in IBSS mode 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 Cc: stable@kernel.org Signed-off-by: John W. Linville --- diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c index 1f2db647bb5..22f0c2aa7a8 100644 --- a/net/mac80211/ibss.c +++ b/net/mac80211/ibss.c @@ -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; }