From: Benoit Papillault <benoit.papillault@free.fr>
To: johannes@sipsolutions.net
Cc: linux-wireless@vger.kernel.org,
Benoit Papillault <benoit.papillault@free.fr>,
stable@kernel.org
Subject: [PATCH] mac80211: Fix probe request filtering in IBSS mode
Date: Fri, 5 Feb 2010 01:21:03 +0100 [thread overview]
Message-ID: <1265329263-3120-1-git-send-email-benoit.papillault@free.fr> (raw)
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 <benoit.papillault@free.fr>
Cc: stable@kernel.org
---
net/mac80211/ibss.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/mac80211/ibss.c b/net/mac80211/ibss.c
index 86bd2a0..e905c45 100644
--- a/net/mac80211/ibss.c
+++ b/net/mac80211/ibss.c
@@ -714,7 +714,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;
}
--
1.6.3.3
next reply other threads:[~2010-02-05 0:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-05 0:21 Benoit Papillault [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-02-04 21:34 [PATCH] mac80211: Fix probe request filtering in IBSS mode Benoit Papillault
2010-02-04 23:54 ` Luis R. Rodriguez
2010-02-05 0:11 ` Benoit PAPILLAULT
2010-02-05 0:13 ` Luis R. Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1265329263-3120-1-git-send-email-benoit.papillault@free.fr \
--to=benoit.papillault@free.fr \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@vger.kernel.org \
--cc=stable@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox