diff options
author | Dan Williams <dcbw@redhat.com> | 2012-10-12 14:38:49 -0500 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2012-10-17 14:07:37 -0500 |
commit | e6bdb8bc5592396f6c12167446a08854d368ed93 (patch) | |
tree | 84ddd04b4a771095699a6d45431b359db609795b /libnm-util/nm-utils.h | |
parent | 7c34a37e73104b8b529247fe7edb8ca7855dbd6d (diff) | |
download | NetworkManager-e6bdb8bc5592396f6c12167446a08854d368ed93.tar.gz |
libnm-util: add methods for AP-mode security filtering
Add a helper like nm_utils_security_valid() except for access point
mode. We can't use nm_utils_security_valid() without changing the
arguments, hence the new function. Plus in AP mode all you care about
are the device capabilities, not AP flags since the device *is*
the AP.
Diffstat (limited to 'libnm-util/nm-utils.h')
-rw-r--r-- | libnm-util/nm-utils.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libnm-util/nm-utils.h b/libnm-util/nm-utils.h index ef4b875d74..203d83b5cb 100644 --- a/libnm-util/nm-utils.h +++ b/libnm-util/nm-utils.h @@ -87,6 +87,9 @@ gboolean nm_utils_security_valid (NMUtilsSecurityType type, NM80211ApSecurityFlags ap_wpa, NM80211ApSecurityFlags ap_rsn); +gboolean nm_utils_ap_mode_security_valid (NMUtilsSecurityType type, + NMDeviceWifiCapabilities wifi_caps); + GSList *nm_utils_ip4_addresses_from_gvalue (const GValue *value); void nm_utils_ip4_addresses_to_gvalue (GSList *list, GValue *value); |