pub fn utils_ap_mode_security_valid(
type_: UtilsSecurityType,
wifi_caps: DeviceWifiCapabilities,
) -> boolExpand description
Given a set of device capabilities, and a desired security type to check against, determines whether the combination of device capabilities and desired security type are valid for AP/Hotspot connections.
§type_
the security type to check device capabilities against, e.g. #NMU_SEC_STATIC_WEP
§wifi_caps
bitfield of the capabilities of the specific Wi-Fi device, e.g. #NM_WIFI_DEVICE_CAP_CIPHER_WEP40
§Returns
true if the device capabilities are compatible with the desired
@type_, false if they are not.