Skip to content

Commit 4fa9433

Browse files
author
Kalle Valo
committed
Merge ath-current from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
ath.git fixes for 4.18. Major changes: wcn36xx * convert testmode.c to plain ASCII ath10k * fix a firmware crash during bandwidth change
2 parents 9a98302 + 371d5e9 commit 4fa9433

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

drivers/net/wireless/ath/ath10k/mac.c

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6058,8 +6058,19 @@ static void ath10k_sta_rc_update_wk(struct work_struct *wk)
60586058
ath10k_mac_max_vht_nss(vht_mcs_mask)));
60596059

60606060
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+
}
60636074

60646075
err = ath10k_wmi_peer_set_param(ar, arvif->vdev_id, sta->addr,
60656076
WMI_PEER_CHAN_WIDTH, bw);
@@ -6100,6 +6111,7 @@ static void ath10k_sta_rc_update_wk(struct work_struct *wk)
61006111
sta->addr);
61016112
}
61026113

6114+
exit:
61036115
mutex_unlock(&ar->conf_mutex);
61046116
}
61056117

drivers/net/wireless/ath/ath10k/wmi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6144,6 +6144,7 @@ enum wmi_peer_param {
61446144
WMI_PEER_NSS = 0x5,
61456145
WMI_PEER_USE_4ADDR = 0x6,
61466146
WMI_PEER_DEBUG = 0xa,
6147+
WMI_PEER_PHYMODE = 0xd,
61476148
WMI_PEER_DUMMY_VAR = 0xff, /* dummy parameter for STA PS workaround */
61486149
};
61496150

drivers/net/wireless/ath/wcn36xx/testmode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* Copyright (c) 2018, The Linux Foundation. All rights reserved.
33
*
44
* Permission to use, copy, modify, and/or distribute this software for any

0 commit comments

Comments
 (0)