mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-23 23:20:24 +01:00
wifi: fix longstanding bug where scan list gets duplicated
Obviously, two APs with exactly the same flags are compatible.
This commit is contained in:
parent
c0c94a96af
commit
4b78fb7485
1 changed files with 3 additions and 0 deletions
|
|
@ -1261,6 +1261,9 @@ nm_ap_check_compatible (NMAccessPoint *self,
|
|||
static gboolean
|
||||
capabilities_compatible (guint32 a_flags, guint32 b_flags)
|
||||
{
|
||||
if (a_flags == b_flags)
|
||||
return TRUE;
|
||||
|
||||
/* Make sure there's a common key management method */
|
||||
if (!((a_flags & 0x300) & (b_flags & 0x300)))
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue