From: Jouni Malinen Date: Sat, 9 Mar 2019 10:43:20 +0000 (+0200) Subject: Minor cleanup to return after WNM Action frame handling X-Git-Tag: hostap_2_8~264 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc833a236ce254471d3c0237749f28f9a98ae0d8;p=thirdparty%2Fhostap.git 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 --- 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