Re: Hidden SSID's

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Larry Finger <larry.finger@...>
Cc: Dan Williams <dcbw@...>, Johannes Berg <johannes@...>, netdev <netdev@...>, LKML <linux-kernel@...>
Date: Thursday, February 1, 2007 - 2:46 pm

On Tue, Jan 30, 2007 at 08:35:18PM -0600, Larry Finger wrote:


Well, yes, but SIOCSIWSCAN and SIOCGIWSCAN calls are not in any way
linked together.. You could have two user space programs asking for a
scan of different SSID at more or less the same time and then have them
read the results with SIOCGIWSCAN. At this point, the SSID from the last
SIOCSIWSCAN would be returned for all APs that are in the scan list
without an SSID. This may not be the correct SSID and can produce quite
confusing results. I don't see this as an improvement over just removing
the "<hidden>" which will at least provide consistent results.

The proper fix for this is to use the information from the AP (Probe
Response frames) and create a local BSS list that has entries with SSID
updated from Probe Responses. If the underlying hardware/firmware does
not allow such handling, this kind of mapping of SSIDs from scan request
to scan results should probably in the hardware driver that would have
chance of mapping results from firmware to request for a given SSID. At
that point, it might be feasible to change the SSID in scan results, but
I see only problems for the case where this is done at higher layer.


The 802.11 stack should fill in the proper SSID data from Probe
Responses and maintain a local BSS list, i.e., the hidden APs would be
marked with proper SSID whenever Probe Responses are processed. See,
e.g., how driver/net/wireless/hostap/*.c use local->bss_list that will
be filled with information from both Beacon and Probe Response frames or
how wireless-dev.git net/d80211/ieee80211_sta.c handles updating of BSS
entry from both Beacon and Probe Response frames (i.e., do not allow
Beacon frames to replace data from Probe Response frames) in
ieee80211_rx_bss_info().

In other words, the hidden SSIDs are resolved in the BSS list based on
information from Probe Responses and user space programs will get proper
information in the scan results regardless of how the real SSID was
learned.

-- 
Jouni Malinen                                            PGP id EFC895FA
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Hidden SSID's, Larry Finger, (Fri Jan 26, 11:48 pm)
Re: Hidden SSID's, Dan Williams, (Sat Jan 27, 8:08 am)
Re: Hidden SSID's, Larry Finger, (Sun Jan 28, 6:18 pm)
Re: Hidden SSID's, Jouni Malinen, (Tue Jan 30, 6:53 pm)
Re: Hidden SSID's, Larry Finger, (Sat Jan 27, 11:29 am)
Re: Hidden SSID's, Johannes Berg, (Sun Jan 28, 5:28 pm)
Re: Hidden SSID's, Dan Williams, (Mon Jan 29, 9:00 am)
Re: Hidden SSID's, Jouni Malinen, (Mon Jan 29, 11:09 pm)
Re: Hidden SSID's, Dan Williams, (Mon Jan 29, 11:36 pm)
Re: Hidden SSID's, Larry Finger, (Tue Jan 30, 12:52 am)
Re: Hidden SSID's, Jouni Malinen, (Tue Jan 30, 1:08 am)
Re: Hidden SSID's, Larry Finger, (Tue Jan 30, 3:08 am)
Re: Hidden SSID's, Jouni Malinen, (Tue Jan 30, 6:56 pm)
Re: Hidden SSID's, Larry Finger, (Tue Jan 30, 10:35 pm)
Re: Hidden SSID's, Jouni Malinen, (Thu Feb 1, 2:46 pm)