ap_security_compatible


Description:

public bool ap_security_compatible (SettingWirelessSecurity s_wireless_sec, @80211ApFlags ap_flags, @80211ApSecurityFlags ap_wpa, @80211ApSecurityFlags ap_rsn, @80211Mode ap_mode)

Given a SettingWireless and an optional SettingWirelessSecurity, determine if the configuration given by the settings is compatible with the security of an access point using that access point's capability flags and mode.

Useful for clients that wish to filter a set of connections against a set of access points and determine which connections are compatible with which access points.

Parameters:

this

a SettingWireless

s_wireless_sec

a SettingWirelessSecurity or null

ap_flags

the nm80211apflags of the given access point

ap_wpa

the nm80211apsecurityflags of the given access point's WPA capabilities

ap_rsn

the nm80211apsecurityflags of the given access point's WPA2/RSN capabilities

ap_mode

the 802.11 mode of the AP, either Ad-Hoc or Infrastructure

Returns:

true if the given settings are compatible with the access point's security flags and mode, false if they are not.