ap_security_compatible
Description:
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 | |
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. |