File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -6058,8 +6058,19 @@ static void ath10k_sta_rc_update_wk(struct work_struct *wk)
6058
6058
ath10k_mac_max_vht_nss (vht_mcs_mask )));
6059
6059
6060
6060
if (changed & IEEE80211_RC_BW_CHANGED ) {
6061
- ath10k_dbg (ar , ATH10K_DBG_MAC , "mac update sta %pM peer bw %d\n" ,
6062
- sta -> addr , bw );
6061
+ enum wmi_phy_mode mode ;
6062
+
6063
+ mode = chan_to_phymode (& def );
6064
+ ath10k_dbg (ar , ATH10K_DBG_MAC , "mac update sta %pM peer bw %d phymode %d\n" ,
6065
+ sta -> addr , bw , mode );
6066
+
6067
+ err = ath10k_wmi_peer_set_param (ar , arvif -> vdev_id , sta -> addr ,
6068
+ WMI_PEER_PHYMODE , mode );
6069
+ if (err ) {
6070
+ ath10k_warn (ar , "failed to update STA %pM peer phymode %d: %d\n" ,
6071
+ sta -> addr , mode , err );
6072
+ goto exit ;
6073
+ }
6063
6074
6064
6075
err = ath10k_wmi_peer_set_param (ar , arvif -> vdev_id , sta -> addr ,
6065
6076
WMI_PEER_CHAN_WIDTH , bw );
@@ -6100,6 +6111,7 @@ static void ath10k_sta_rc_update_wk(struct work_struct *wk)
6100
6111
sta -> addr );
6101
6112
}
6102
6113
6114
+ exit :
6103
6115
mutex_unlock (& ar -> conf_mutex );
6104
6116
}
6105
6117
Original file line number Diff line number Diff line change @@ -6144,6 +6144,7 @@ enum wmi_peer_param {
6144
6144
WMI_PEER_NSS = 0x5 ,
6145
6145
WMI_PEER_USE_4ADDR = 0x6 ,
6146
6146
WMI_PEER_DEBUG = 0xa ,
6147
+ WMI_PEER_PHYMODE = 0xd ,
6147
6148
WMI_PEER_DUMMY_VAR = 0xff , /* dummy parameter for STA PS workaround */
6148
6149
};
6149
6150
Original file line number Diff line number Diff line change 1
- /*
1
+ /*
2
2
* Copyright (c) 2018, The Linux Foundation. All rights reserved.
3
3
*
4
4
* Permission to use, copy, modify, and/or distribute this software for any
You can’t perform that action at this time.
0 commit comments