C Get WiFi network security information from lib80211

Hello,
I use lib80211_get80211len function with IEEE80211_IOC_SCAN_RESULTS argument to get the list of currently available WiFi networks (the code from ifconfig is used as example). I can get from the ieee80211req_scan_result struct some useful information, but I cannot find a way to get the security flags used by the available networks (WPA / WEP / Open) . I suppose that it is possible somehow, as wpa_supplicant shows this information in scan_results.
Could someone point me to the best way do get such information without using wpa_supplicant, please?
Peter
 
Back
Top