mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-21 13:20:58 +01:00
wifi: fix AP mode check in nm_ap_check_compatible()
AP can only be compatible with "ap"-mode connection when both mode is INFRA and hotspot flag is set.
This commit is contained in:
parent
aa8c3d72d6
commit
a44d36e628
1 changed files with 1 additions and 2 deletions
|
|
@ -1172,8 +1172,7 @@ nm_ap_check_compatible (NMAccessPoint *self,
|
|||
if (!strcmp (mode, "adhoc") && (priv->mode != NM_802_11_MODE_ADHOC))
|
||||
return FALSE;
|
||||
if ( !strcmp (mode, "ap")
|
||||
&& (priv->mode != NM_802_11_MODE_INFRA)
|
||||
&& (priv->hotspot != TRUE))
|
||||
&& (priv->mode != NM_802_11_MODE_INFRA || priv->hotspot != TRUE))
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue