6
6
* Copyright 2007-2010 Johannes Berg <[email protected] >
7
7
* Copyright 2013-2014 Intel Mobile Communications GmbH
8
8
* Copyright(c) 2015 - 2017 Intel Deutschland GmbH
9
- * Copyright (C) 2018-2024 Intel Corporation
9
+ * Copyright (C) 2018-2025 Intel Corporation
10
10
*/
11
11
12
12
#include <linux/jiffies.h>
@@ -3323,8 +3323,8 @@ static void ieee80211_process_sa_query_req(struct ieee80211_sub_if_data *sdata,
3323
3323
return ;
3324
3324
}
3325
3325
3326
- if (!ether_addr_equal (mgmt -> sa , sdata -> deflink . u . mgd . bssid ) ||
3327
- !ether_addr_equal (mgmt -> bssid , sdata -> deflink . u . mgd . bssid )) {
3326
+ if (!ether_addr_equal (mgmt -> sa , sdata -> vif . cfg . ap_addr ) ||
3327
+ !ether_addr_equal (mgmt -> bssid , sdata -> vif . cfg . ap_addr )) {
3328
3328
/* Not from the current AP or not associated yet. */
3329
3329
return ;
3330
3330
}
@@ -3340,9 +3340,9 @@ static void ieee80211_process_sa_query_req(struct ieee80211_sub_if_data *sdata,
3340
3340
3341
3341
skb_reserve (skb , local -> hw .extra_tx_headroom );
3342
3342
resp = skb_put_zero (skb , 24 );
3343
- memcpy (resp -> da , mgmt -> sa , ETH_ALEN );
3343
+ memcpy (resp -> da , sdata -> vif . cfg . ap_addr , ETH_ALEN );
3344
3344
memcpy (resp -> sa , sdata -> vif .addr , ETH_ALEN );
3345
- memcpy (resp -> bssid , sdata -> deflink . u . mgd . bssid , ETH_ALEN );
3345
+ memcpy (resp -> bssid , sdata -> vif . cfg . ap_addr , ETH_ALEN );
3346
3346
resp -> frame_control = cpu_to_le16 (IEEE80211_FTYPE_MGMT |
3347
3347
IEEE80211_STYPE_ACTION );
3348
3348
skb_put (skb , 1 + sizeof (resp -> u .action .u .sa_query ));
0 commit comments