mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-12-01 03:38:21 -05:00
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>
This commit is contained in:
parent
373c796948
commit
1e1245bc8b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user