From: Jouni Malinen Date: Sun, 21 Jan 2018 22:07:44 +0000 (+0200) Subject: FILS: Fix extended capability bit setting for FILS in AP mode X-Git-Tag: hostap_2_7~628 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=703470bfa184da0c2e4b61d4ec8f0169a68e1c38;p=thirdparty%2Fhostap.git 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 --- 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) &&