Detecting WEP Encryption via new D-Bus API
witold.sowa at gmail.com
Sat Jan 9 18:22:26 EST 2010
Phillip Nixon pisze:
> I would like to know how to determine if a network is encrypted with
> WEP via the new D-Bus API. Specifically, I would like to be able to
> automatically prompt a user in a gui to enter the PSK if they want to
> join a network from scan results that is WEP encrypted.
BSS objects have a boolean 'Privacy' property which indicates whether
BSS uses encryption. If you want to check for WPA or WPA2 you need to
check BSSes WPAIE and RSNIE properties. The last two will be replaced
with something more sophisticated very soon since the new API is still
You can obtain current BSS using Interface's CurrentBSS property.
More information about the HostAP