From 4b78fb74851a27a9e2a074dfce717aef8e13f8aa Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Wed, 4 Mar 2009 07:22:07 -0500 Subject: [PATCH] wifi: fix longstanding bug where scan list gets duplicated Obviously, two APs with exactly the same flags are compatible. --- src/NetworkManagerAP.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/NetworkManagerAP.c b/src/NetworkManagerAP.c index 95d1eeff2e..0be7fd0543 100644 --- a/src/NetworkManagerAP.c +++ b/src/NetworkManagerAP.c @@ -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;