]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
DPP: Handle TX status events for broadcast DPP messages
authorJouni Malinen <quic_jouni@quicinc.com>
Mon, 24 Jan 2022 18:28:13 +0000 (20:28 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 24 Jan 2022 20:58:38 +0000 (22:58 +0200)
Report TX status for DPP messages even if the destination address was
broadcast. This is needed to get appropriate trigger for PKEX retries.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/ap/ieee802_11.c

index f6329253766c674f67976ea1674ce103496dc6a5..6140a492c88beb69f543984d40f245ec2e0130b7 100644 (file)
@@ -6618,8 +6618,6 @@ static void handle_action_cb(struct hostapd_data *hapd,
        struct sta_info *sta;
        const struct rrm_measurement_report_element *report;
 
-       if (is_multicast_ether_addr(mgmt->da))
-               return;
 #ifdef CONFIG_DPP
        if (len >= IEEE80211_HDRLEN + 6 &&
            mgmt->u.action.category == WLAN_ACTION_PUBLIC &&
@@ -6650,6 +6648,8 @@ static void handle_action_cb(struct hostapd_data *hapd,
                return;
        }
 #endif /* CONFIG_DPP */
+       if (is_multicast_ether_addr(mgmt->da))
+               return;
        sta = ap_get_sta(hapd, mgmt->da);
        if (!sta) {
                wpa_printf(MSG_DEBUG, "handle_action_cb: STA " MACSTR