Currently ath12k_mac_ieee80211_sta_bw_to_wmi() handles the bandwidth from sta's deflink member. This works only for non-ML station. Now that MLO support is there, extend this function to use link sta instead of deflink. Patch 1 relocates ath12k_mac_ieee80211_sta_bw_to_wmi() so that it can be called from a function used in Patch 2. No functionality change. Patch 2 actually extends the ath12k_mac_ieee80211_sta_bw_to_wmi() to handle link sta. --- Aditya Kumar Singh (2): wifi: ath12k: relocate ath12k_mac_ieee80211_sta_bw_to_wmi() wifi: ath12k: handle ath12k_mac_ieee80211_sta_bw_to_wmi() for link sta drivers/net/wireless/ath/ath12k/mac.c | 79 +++++++++++++++++------------------ 1 file changed, 38 insertions(+), 41 deletions(-) --- base-commit: dbe50a7420e22954c747e79e72df2750d795ea77 change-id: 20250109-fix_link_sta_bandwidth_update-3fac98920766