1

I need to create wpa_supplicant.conf for different type of encryption(WEP, WPA and NONE). I'm scanning for available AP using iwlib and wireless events. Problem is that i can't find security type in scanning result. How to do that?

Thank you for your help!

wallrite
  • 21
  • 6

1 Answers1

1

So i find the answer. If AP broadcast general IE(information element) and it's 8's byte is 0x01...0x05 - AP has WPA or WPA2, if 8's byte has value 0x4a - AP support WPS. If AP broadcasting only WPS IE or if there are no IE - AP has WEP key.

wallrite
  • 21
  • 6
  • Where is that information? I cannot find it. It seems I'd have to re-implement iw_scan() to get that information. Is that correct? – Subsentient Apr 11 '15 at 03:34