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.
This commit is contained in:
Lubomir Rintel
2017-04-30 22:54:51 +02:00
parent 1d15e9c6de
commit a3040bf92f
2 changed files with 9 additions and 0 deletions

View File

@@ -376,6 +376,14 @@ nm_wifi_ap_set_fake (NMWifiAP *ap, gboolean fake)
return FALSE; 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 static gboolean
nm_wifi_ap_set_last_seen (NMWifiAP *ap, gint32 last_seen) nm_wifi_ap_set_last_seen (NMWifiAP *ap, gint32 last_seen)
{ {

View File

@@ -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_get_fake (const NMWifiAP *ap);
gboolean nm_wifi_ap_set_fake (NMWifiAP *ap, gboolean nm_wifi_ap_set_fake (NMWifiAP *ap,
gboolean fake); gboolean fake);
NM80211ApFlags nm_wifi_ap_get_flags (const NMWifiAP *self);
const char *nm_wifi_ap_to_string (const NMWifiAP *self, const char *nm_wifi_ap_to_string (const NMWifiAP *self,
char *str_buf, char *str_buf,