From 703470bfa184da0c2e4b61d4ec8f0169a68e1c38 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 22 Jan 2018 00:07:44 +0200 Subject: [PATCH] FILS: Fix extended capability bit setting for FILS in AP mode 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 --- src/ap/ieee802_11_shared.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ap/ieee802_11_shared.c b/src/ap/ieee802_11_shared.c index 902f64fd5..d9d8161ad 100644 --- a/src/ap/ieee802_11_shared.c +++ b/src/ap/ieee802_11_shared.c @@ -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) &&