diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2017-04-30 22:54:51 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2017-05-12 15:36:01 +0200 |
commit | 763a7f2e9c597887e1c22f5799f86f709e148218 (patch) | |
tree | 5bc1e95854045761ed2e2ca808d160b875a486f5 | |
parent | faa97e0985e05358fad6a5c9fbf1818e62d935f1 (diff) | |
download | NetworkManager-763a7f2e9c597887e1c22f5799f86f709e148218.tar.gz |
wifi/ap: add flags accessor
The wifi device will inspect this to decide whether to initiate a WPS enrollment
unless the user overrides the default.
-rw-r--r-- | src/devices/wifi/nm-wifi-ap.c | 8 | ||||
-rw-r--r-- | src/devices/wifi/nm-wifi-ap.h | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/devices/wifi/nm-wifi-ap.c b/src/devices/wifi/nm-wifi-ap.c index c45eaafa93..90cf8e669c 100644 --- a/src/devices/wifi/nm-wifi-ap.c +++ b/src/devices/wifi/nm-wifi-ap.c @@ -376,6 +376,14 @@ nm_wifi_ap_set_fake (NMWifiAP *ap, gboolean fake) return FALSE; } +NM80211ApFlags +nm_wifi_ap_get_flags (const NMWifiAP *ap) +{ + g_return_val_if_fail (NM_IS_WIFI_AP (ap), NM_802_11_AP_FLAGS_NONE); + + return NM_WIFI_AP_GET_PRIVATE (ap)->flags; +} + static gboolean nm_wifi_ap_set_last_seen (NMWifiAP *ap, gint32 last_seen) { diff --git a/src/devices/wifi/nm-wifi-ap.h b/src/devices/wifi/nm-wifi-ap.h index 5e64087cca..c9b4772fa0 100644 --- a/src/devices/wifi/nm-wifi-ap.h +++ b/src/devices/wifi/nm-wifi-ap.h @@ -88,6 +88,7 @@ gboolean nm_wifi_ap_set_max_bitrate (NMWifiAP *ap, gboolean nm_wifi_ap_get_fake (const NMWifiAP *ap); gboolean nm_wifi_ap_set_fake (NMWifiAP *ap, gboolean fake); +NM80211ApFlags nm_wifi_ap_get_flags (const NMWifiAP *self); const char *nm_wifi_ap_to_string (const NMWifiAP *self, char *str_buf, |