wifi: fix longstanding bug where scan list gets duplicated

Obviously, two APs with exactly the same flags are compatible.
This commit is contained in:
Dan Williams 2009-03-04 07:22:07 -05:00
parent c0c94a96af
commit 4b78fb7485

View file

@ -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;