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