Print the station MAC address before freeing the data.
Fixes: e166a37632d4 ("AP MLD: Control interface events for ML Setup Link Reconfiguration)
CC: Mohan Kumar G <quic_mkumarg@quicinc.com>
Signed-off-by: Benjamin Berg <benjamin.berg@intel.com>
}
/* Free as a link STA */
- ap_free_sta(lhapd, lsta);
wpa_msg(hapd->msg_ctx, MSG_INFO,
WPA_EVENT_LINK_STA_REMOVED "sta=" MACSTR " link_id=%u",
MAC2STR(lsta->addr), link_id);
+ ap_free_sta(lhapd, lsta);
for_each_mld_link(other_hapd, lhapd) {
struct mld_link_info *link;