]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix QoS Mapping ext capab bit setting
authorJouke Witteveen <j.witteveen@gmail.com>
Mon, 25 Jun 2018 20:28:50 +0000 (22:28 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 12 Aug 2018 13:35:31 +0000 (16:35 +0300)
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>
wpa_supplicant/wpa_supplicant.c

index 185a8d50fbcf8b21aa6008366cd1a4a21fd5e223..0c090a93c23879005df5b117ac4376aa08baad53 100644 (file)
@@ -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;