Search Linux Wireless

Re: How the mac80211 handle "\0" essid?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 20, 2010 at 4:30 PM, Dan Williams <dcbw@xxxxxxxxxx> wrote:
> On Thu, 2010-05-20 at 15:40 -0400, leo liang wrote:
>> Hi,
>>
>> Does any one know that if the application send "\0" as essid to
>> mac80211, how it handle this case?
>
> What are you trying to do?  Are you trying to work with a hidden AP, or
> do something else?

I want to hide the associated AP name.  Or disassociate and do not let
the interface connect to any AP.
>
> An SSID is simply a 32-byte array; the protocol and the stack don't care
> what's in that array.  So while you can't use command-line tools like
> 'iwconfig' to send an SSID containing a \0, you can use netlink or
> wpa_supplicant's nl80211 driver to do so.

I checked "iwconfig" source code, if you run "iwconfig wlan0 essid
off", it will set the first char as "\0".

>
> But in the end, if you're trying to associate with an AP that has an
> SSID of only '\0', that AP is likely broken or trying to hide it's SSID,
> and you should be using the real SSID of that AP instead of '\0'.
>
> Dan
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux