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:
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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,
|
||||||
|
Reference in New Issue
Block a user