]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Minor cleanup to return after WNM Action frame handling
authorJouni Malinen <j@w1.fi>
Sat, 9 Mar 2019 10:43:20 +0000 (12:43 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 9 Mar 2019 10:43:20 +0000 (12:43 +0200)
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 <j@w1.fi>
src/ap/drv_callbacks.c

index 9275e590725ffb9b0e16556dbbf87e4cd85d8b61..4a9ce3b97c9d20fa7eef0fb57db8a2bc556a37d0 100644 (file)
@@ -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