diff mbox

ath10k: add max_tx_power for QCA6174 WLAN.RM.2.0 firmware

Message ID 1461608670-15386-1-git-send-email-kvalo@qca.qualcomm.com (mailing list archive)
State Accepted
Headers show

Commit Message

Kalle Valo April 25, 2016, 6:24 p.m. UTC
From: Alan Liu <alanliu@qca.qualcomm.com>

QCA6174 WLAN.RM.2.0 firmware uses max_tx_power instead of using max_reg_power
to set transmission power. The tx power was about -50dbm, after applying this
change, it become -32dbm.

Signed-off-by: Alan Liu <alanliu@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
---

v2:

* rename the patch from:

    Add max_tx_power member to set max transmission power for WLAN.RM.2.0 firmware.

  to:

    ath10k: add max_tx_power for QCA6174 WLAN.RM.2.0 firmware

* CC ath10k list

* add an empty line

 drivers/net/wireless/ath/ath10k/wmi.c |    1 +
 drivers/net/wireless/ath/ath10k/wmi.h |    1 +
 2 files changed, 2 insertions(+)

Comments

Kalle Valo April 27, 2016, 12:53 p.m. UTC | #1
Kalle Valo <kvalo@qca.qualcomm.com> writes:

> From: Alan Liu <alanliu@qca.qualcomm.com>
>
> QCA6174 WLAN.RM.2.0 firmware uses max_tx_power instead of using max_reg_power
> to set transmission power. The tx power was about -50dbm, after applying this
> change, it become -32dbm.
>
> Signed-off-by: Alan Liu <alanliu@qca.qualcomm.com>
> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
index a1afb2e2b05a..260070db2512 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.c
+++ b/drivers/net/wireless/ath/ath10k/wmi.c
@@ -1633,6 +1633,7 @@  void ath10k_wmi_put_wmi_channel(struct wmi_channel *ch,
 	ch->max_power = arg->max_power;
 	ch->reg_power = arg->max_reg_power;
 	ch->antenna_max = arg->max_antenna_gain;
+	ch->max_tx_power = arg->max_power;
 
 	/* mode & flags share storage */
 	ch->mode = arg->mode;
diff --git a/drivers/net/wireless/ath/ath10k/wmi.h b/drivers/net/wireless/ath/ath10k/wmi.h
index db2553522d8b..fe36b2c99018 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.h
+++ b/drivers/net/wireless/ath/ath10k/wmi.h
@@ -1795,6 +1795,7 @@  struct wmi_channel {
 		__le32 reginfo1;
 		struct {
 			u8 antenna_max;
+			u8 max_tx_power;
 		} __packed;
 	} __packed;
 } __packed;