Function

NM-1.0NMutils_ap_mode_security_valid

  • 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.

    Parameters

    • type: NM.UtilsSecurityType

      the security type to check device capabilities against, e.g. #NMU_SEC_STATIC_WEP

    • wifi_caps: NM.DeviceWifiCapabilities

      bitfield of the capabilities of the specific Wi-Fi device, e.g. #NM_WIFI_DEVICE_CAP_CIPHER_WEP40

    Returns boolean

    true if the device capabilities are compatible with the desired type, false if they are not.