diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2018-06-25 20:28:50 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2018-08-12 13:35:31 (GMT) |
commit | 1e1245bc8bf23be1d9e4b0d07881a8d927af6e11 (patch) | |
tree | 59381ea220b94a3b150b49f93f29569b725265ab /wpa_supplicant | |
parent | 373c796948599a509bad71695b5b72eef003f661 (diff) | |
download | hostap-1e1245bc8bf23be1d9e4b0d07881a8d927af6e11.zip hostap-1e1245bc8bf23be1d9e4b0d07881a8d927af6e11.tar.gz hostap-1e1245bc8bf23be1d9e4b0d07881a8d927af6e11.tar.bz2 |
Fix QoS Mapping ext capab bit setting
Fix the typo in using WPA_DRIVER_FLAGS_QOS_MAPPING to set the QoS Map
bit in Extended Capabilities. The previous implementation ended up
adding this bit even if the driver did not actually indicate support for
the capability.
Signed-off-by: Jouke Witteveen <j.witteveen@gmail.com>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r-- | wpa_supplicant/wpa_supplicant.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c index 185a8d5..0c090a9 100644 --- a/wpa_supplicant/wpa_supplicant.c +++ b/wpa_supplicant/wpa_supplicant.c @@ -1656,7 +1656,7 @@ static void wpas_ext_capab_byte(struct wpa_supplicant *wpa_s, u8 *pos, int idx) break; case 4: /* Bits 32-39 */ #ifdef CONFIG_INTERWORKING - if (wpa_s->drv_flags / WPA_DRIVER_FLAGS_QOS_MAPPING) + if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_QOS_MAPPING) *pos |= 0x01; /* Bit 32 - QoS Map */ #endif /* CONFIG_INTERWORKING */ break; |