mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-16 09:03:05 -05:00
dbus: Fix value of BSS Privacy property
Checking for IEEE80211_CAP_PRIVACY needs to use & and not &&.
This commit is contained in:
parent
728e776c09
commit
097c5802da
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user