Given a set of device capabilities, and a desired security type to check against, determines whether the combination of device, desired security type, and AP capabilities intersect.
NOTE: this function cannot handle checking security for AP/Hotspot mode; use ap_mode_security_valid instead.
type |
the security type to check AP flags and device capabilities against, e.g. STATIC_WEP |
wifi_caps |
bitfield of the capabilities of the specific Wi-Fi device, e.g. CIPHER_WEP40 |
have_ap |
whether the |
adhoc |
whether the capabilities being tested are from an Ad-Hoc AP (IBSS) |
ap_flags |
bitfield of AP capabilities, e.g. PRIVACY |
ap_wpa |
bitfield of AP capabilities derived from the AP's WPA beacon, e.g. ( PAIR_TKIP | KEY_MGMT_PSK) |
ap_rsn |
bitfield of AP capabilities derived from the AP's RSN/WPA2 beacon, e.g. ( PAIR_CCMP | PAIR_TKIP) |
true if the device capabilities and AP capabilities intersect and are compatible with the desired
|