From: "John W. Linville" <linville@tuxdriver.com>
To: linux-wireless@vger.kernel.org
Subject: [PATCH] mac80211: probe for hidden SSIDs in pre-auth scan
Date: Tue, 7 Aug 2007 16:33:15 -0400 [thread overview]
Message-ID: <20070807203315.GG3330@tuxdriver.com> (raw)
From: John W. Linville <linville@tuxdriver.com>
Probe for hidden SSIDs if initiating pre-authentication scan and SSID
is set for STA interface.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
---
The ternary conditionals are a bit ugly. I guess I could recode it
with temp vars initialized before calling ieee80211_sta_start_scan.
Any other complaints?
net/mac80211/ieee80211_sta.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c
index 007dd08..9f467cc 100644
--- a/net/mac80211/ieee80211_sta.c
+++ b/net/mac80211/ieee80211_sta.c
@@ -3217,7 +3217,10 @@ static int ieee80211_sta_config_auth(struct net_device *dev,
return 0;
} else {
if (ifsta->state != IEEE80211_AUTHENTICATE) {
- ieee80211_sta_start_scan(dev, NULL, 0);
+ ieee80211_sta_start_scan(dev, ifsta->auto_ssid_sel ?
+ NULL : ifsta->ssid,
+ ifsta->auto_ssid_sel ?
+ 0 : ifsta->ssid_len);
ifsta->state = IEEE80211_AUTHENTICATE;
set_bit(IEEE80211_STA_REQ_AUTH, &ifsta->request);
} else
--
John W. Linville
linville@tuxdriver.com
next reply other threads:[~2007-08-07 21:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-07 20:33 John W. Linville [this message]
2007-08-08 7:56 ` [PATCH] mac80211: probe for hidden SSIDs in pre-auth scan Michael Wu
2007-08-08 9:34 ` Johannes Berg
2007-08-08 9:41 ` Johannes Berg
2007-08-09 4:16 ` Michael Wu
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=20070807203315.GG3330@tuxdriver.com \
--to=linville@tuxdriver.com \
--cc=linux-wireless@vger.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.