mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 09:58:07 +02:00
wifi/ap: detect mesh mode
mark ap if supplicant reports bss property "Mode = 'mesh'". bss mode mesh is available since hostap_2_6-729-g213eb1885 check mesh connections are compatible with detected mode.
This commit is contained in:
parent
3ef3733c81
commit
f481ec7160
1 changed files with 7 additions and 1 deletions
|
|
@ -817,6 +817,8 @@ nm_wifi_ap_update_from_properties (NMWifiAP *ap,
|
|||
changed |= nm_wifi_ap_set_mode (ap, NM_802_11_MODE_INFRA);
|
||||
else if (!g_strcmp0 (s, "ad-hoc"))
|
||||
changed |= nm_wifi_ap_set_mode (ap, NM_802_11_MODE_ADHOC);
|
||||
else if (!g_strcmp0 (s, "mesh"))
|
||||
changed |= nm_wifi_ap_set_mode (ap, NM_802_11_MODE_MESH);
|
||||
}
|
||||
|
||||
if (g_variant_lookup (properties, "Signal", "n", &i16))
|
||||
|
|
@ -1009,7 +1011,9 @@ nm_wifi_ap_to_string (const NMWifiAP *self,
|
|||
? '#'
|
||||
: (priv->fake
|
||||
? 'f'
|
||||
: 'a'))),
|
||||
: (priv->mode == NM_802_11_MODE_MESH
|
||||
? 'm'
|
||||
: 'a')))),
|
||||
chan,
|
||||
priv->strength,
|
||||
priv->flags & NM_802_11_AP_FLAGS_PRIVACY ? 'P' : '_',
|
||||
|
|
@ -1074,6 +1078,8 @@ nm_wifi_ap_check_compatible (NMWifiAP *self,
|
|||
if ( !strcmp (mode, "ap")
|
||||
&& (priv->mode != NM_802_11_MODE_INFRA || priv->hotspot != TRUE))
|
||||
return FALSE;
|
||||
if (!strcmp (mode, "mesh") && (priv->mode != NM_802_11_MODE_MESH))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
band = nm_setting_wireless_get_band (s_wireless);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue