]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
hostapd: Fix handling a 20/40 BSS Coexistence Management frame
authorVidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>
Mon, 29 May 2017 11:13:37 +0000 (16:43 +0530)
committerJouni Malinen <j@w1.fi>
Mon, 5 Jun 2017 05:04:44 +0000 (08:04 +0300)
hostapd processes a received 20/40 BSS Coexistence management frame, but
if no separate callbacks are registered for handling Public Action
frames it eventually sends a reply with MSB of category code set to 1
thinking that the received frame is an invalid frame. This could happen
based on whether hostapd was built and enabled with functionality using
the callback functions.

Fix this by explicitly returning 1 from the function when the 20/40 BSS
Coexistence Management frame is processed.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/ap/ieee802_11.c

index d15a70c598aac6de4fa7b8ecef84a3548aa8561b..062f546b7cc50d5f31ba66df199b3aa48165c008 100644 (file)
@@ -3448,6 +3448,7 @@ static int handle_action(struct hostapd_data *hapd,
                                   "HT20/40 coex mgmt frame received from STA "
                                   MACSTR, MAC2STR(mgmt->sa));
                        hostapd_2040_coex_action(hapd, mgmt, len);
+                       return 1;
                }
 #endif /* CONFIG_IEEE80211N */
                if (hapd->public_action_cb) {