Get IEs from Scan result

Jouni Malinen j
Fri Jun 26 01:58:29 PDT 2015


On Fri, Jun 26, 2015 at 08:36:29AM +0000, volker.obhof.w at sew-eurodrive.de wrote:
> So there are the structs ?wpa_scan_results? and ?wpa_scan_res?. In struct ?wpa_scan_res? there is a variable ?ie_len?.
> 
> How can I get IEs from  current scan (probe response) because I only have IE length in that struct?

See the struct wpa_scan_res documentation in src/drivers/driver.h for
details on where the IEs are stored. For most purposes, the
wpa_scan_get_ie() and wpa_scan_get_vendor_ie() helpers should be used to
fetch an IE.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list