]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
FILS: Fix extended capability bit setting for FILS in AP mode
authorJouni Malinen <j@w1.fi>
Sun, 21 Jan 2018 22:07:44 +0000 (00:07 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 21 Jan 2018 22:07:44 +0000 (00:07 +0200)
FILS capability bit setting could have ended up setting boths biths 72
(correct) and 64 (incorrect; part of Max Number of MSDUs In A-MSDU). Fix
this by adding the missing break to the switch statement.

Fixed: f55acd909e37 ("FILS: Set FILS Capability bit in management frames from AP")
Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/ieee802_11_shared.c

index 902f64fd5a66bf4945a38646b72e4491fadd1c87..d9d8161adb094db1f6577a6fecc4d228785effdf 100644 (file)
@@ -225,6 +225,7 @@ static void hostapd_ext_capab_byte(struct hostapd_data *hapd, u8 *pos, int idx)
                        *pos |= 0x40; /* Bit 70 - FTM responder */
                if (hapd->conf->ftm_initiator)
                        *pos |= 0x80; /* Bit 71 - FTM initiator */
+               break;
        case 9: /* Bits 72-79 */
 #ifdef CONFIG_FILS
                if ((hapd->conf->wpa & WPA_PROTO_RSN) &&