security_valid
Description:
public bool security_valid (SecurityType type, DeviceWifiCapabilities wifi_caps, bool have_ap, bool adhoc, @80211ApFlags ap_flags, @80211ApSecurityFlags ap_wpa, @80211ApSecurityFlags ap_rsn)
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.
Parameters:
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. (#NM_802_11_AP_SEC_PAIR_TKIP | KEY_MGMT_PSK) |
ap_rsn |
bitfield of AP capabilities derived from the AP's RSN/WPA2 beacon, e.g. (#NM_802_11_AP_SEC_PAIR_CCMP | PAIR_TKIP) |
Returns:
|