How to get correct wireless security protocol

Sam Gardner sgardner03
Tue Dec 18 03:03:01 PST 2012

I am using iwlist to get a list of wireless networks. The access point I am trying to connect to has the security protocol set to WPA2. However, sometimes when I run iwlist it is reporting it as WEP, since it does not report it as WPA2. I have also tried "wpa_cli scan; wpa_cli scan_results" and this sometimes misreports the security protocol too.
Is there anyway, to get the correct security protocol for a wireless access point?
I've tried "iw dev wlan0 scan", but cannot distinguish between open and WEP enabled access points. How can I do this?
Kind Regards,
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Hostap mailing list