Search Linux Wireless

Re: [PATCH v2] ath6kl: handle probe response from P2P device in P2P GO mode

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

 




On 3/20/12 1:39 AM, "Kalle Valo" <kvalo@xxxxxxxxxxxxxxxx> wrote:

>On 03/15/2012 11:34 PM, Aarthi Thiruvengadam wrote:
>>+/* Check if SSID length is greater than DIRECT- */
>> +static bool ath6kl_is_p2p_go_ssid(const u8 *buf, size_t len)
>> +{
>> +	const struct ieee80211_mgmt *mgmt;
>> +	mgmt = (const struct ieee80211_mgmt *) buf;
>> +
>> +	/* variable[1] contains the SSID tag length */

>How do you know that it's SSID without checking the IE id from
>variable[0]? Is that guaranteed or something?

The information elements in Probe Response frames (and other management
frames for that matter) are in a fixed order, so the SSID element is
always in this location.

- Jouni

--
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 Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux