On Wed, 2009-08-05 at 13:35 +0800, Johannes Berg wrote: > On Wed, 2009-08-05 at 13:27 +0800, Zhu Yi wrote: > > > Yeah, I'm lazy to parse the current_bss.pub->information_elements for > > SSID in the first instance. Should we implement some beacon parsing in > > cfg80211 or move ieee802_11_parse_elems from mac80211? > > There's ieee80211_bss_get_ie() in cfg80211, which doesn't give you the > length/data in two separate values, but otherwise behaves pretty > similarly. IOW, something like > > const u8 *ssid = ieee80211_bss_get_ie(bss /* or &bss->pub */, WLAN_EID_SSID); > if (ssid) { > ssid_len = ssid[1]; > ssid_data = ssid + 2; > } Ah, I missed that. Will send out a patch. Thanks, -yi -- 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