From cc833a236ce254471d3c0237749f28f9a98ae0d8 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 9 Mar 2019 12:43:20 +0200 Subject: [PATCH] Minor cleanup to return after WNM Action frame handling There is no need to go through the following handler calls in hostapd_action_rx() after having found the matching WLAN_ACTION_WNM handler. Signed-off-by: Jouni Malinen --- src/ap/drv_callbacks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c index 9275e5907..4a9ce3b97 100644 --- a/src/ap/drv_callbacks.c +++ b/src/ap/drv_callbacks.c @@ -1118,6 +1118,7 @@ static void hostapd_action_rx(struct hostapd_data *hapd, #ifdef CONFIG_WNM_AP if (mgmt->u.action.category == WLAN_ACTION_WNM) { ieee802_11_rx_wnm_action_ap(hapd, mgmt, drv_mgmt->frame_len); + return; } #endif /* CONFIG_WNM_AP */ #ifdef CONFIG_FST