66 * Copyright 2007-2010 Johannes Berg <[email protected] > 77 * Copyright 2013-2014 Intel Mobile Communications GmbH
88 * Copyright(c) 2015 - 2017 Intel Deutschland GmbH
9- * Copyright (C) 2018-2024 Intel Corporation
9+ * Copyright (C) 2018-2025 Intel Corporation
1010 */
1111
1212#include <linux/jiffies.h>
@@ -3329,8 +3329,8 @@ static void ieee80211_process_sa_query_req(struct ieee80211_sub_if_data *sdata,
33293329 return ;
33303330 }
33313331
3332- if (!ether_addr_equal (mgmt -> sa , sdata -> deflink . u . mgd . bssid ) ||
3333- !ether_addr_equal (mgmt -> bssid , sdata -> deflink . u . mgd . bssid )) {
3332+ if (!ether_addr_equal (mgmt -> sa , sdata -> vif . cfg . ap_addr ) ||
3333+ !ether_addr_equal (mgmt -> bssid , sdata -> vif . cfg . ap_addr )) {
33343334 /* Not from the current AP or not associated yet. */
33353335 return ;
33363336 }
@@ -3346,9 +3346,9 @@ static void ieee80211_process_sa_query_req(struct ieee80211_sub_if_data *sdata,
33463346
33473347 skb_reserve (skb , local -> hw .extra_tx_headroom );
33483348 resp = skb_put_zero (skb , 24 );
3349- memcpy (resp -> da , mgmt -> sa , ETH_ALEN );
3349+ memcpy (resp -> da , sdata -> vif . cfg . ap_addr , ETH_ALEN );
33503350 memcpy (resp -> sa , sdata -> vif .addr , ETH_ALEN );
3351- memcpy (resp -> bssid , sdata -> deflink . u . mgd . bssid , ETH_ALEN );
3351+ memcpy (resp -> bssid , sdata -> vif . cfg . ap_addr , ETH_ALEN );
33523352 resp -> frame_control = cpu_to_le16 (IEEE80211_FTYPE_MGMT |
33533353 IEEE80211_STYPE_ACTION );
33543354 skb_put (skb , 1 + sizeof (resp -> u .action .u .sa_query ));
0 commit comments