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; } johannes
Attachment:
signature.asc
Description: This is a digitally signed message part