Browse Source

dbus: Fix value of BSS Privacy property

Checking for IEEE80211_CAP_PRIVACY needs to use & and not &&.
Marcel Holtmann 15 years ago
parent
commit
097c5802da
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wpa_supplicant/dbus/dbus_new_handlers.c

+ 1 - 1
wpa_supplicant/dbus/dbus_new_handlers.c

@@ -2421,7 +2421,7 @@ DBusMessage * wpas_dbus_getter_bss_privacy(DBusMessage *message,
 		return NULL;
 	}
 
-	privacy = res->caps && IEEE80211_CAP_PRIVACY ? TRUE : FALSE;
+	privacy = (res->caps & IEEE80211_CAP_PRIVACY) ? TRUE : FALSE;
 	return wpas_dbus_simple_property_getter(message, DBUS_TYPE_BOOLEAN,
 						&privacy);
 }