ath10k: add max_tx_power for QCA6174 WLAN.RM.2.0 firmware
authorAlan Liu <alanliu@qca.qualcomm.com>
Tue, 26 Apr 2016 11:41:33 +0000 (14:41 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 26 Apr 2016 11:41:33 +0000 (14:41 +0300)
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>
drivers/net/wireless/ath/ath10k/wmi.c
drivers/net/wireless/ath/ath10k/wmi.h

index 621019f435316c767b7ff1474bf47d23462b4a41..39a54a544d45dd79d8428e348048ec5cd5b5d1d0 100644 (file)
@@ -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;
index db2553522d8b73ab5b8b5d2f4405ce7dc4b89655..fe36b2c99018fd22bf5b422bc3e16d8c1e574432 100644 (file)
@@ -1795,6 +1795,7 @@ struct wmi_channel {
                __le32 reginfo1;
                struct {
                        u8 antenna_max;
+                       u8 max_tx_power;
                } __packed;
        } __packed;
 } __packed;