ath10k: fix TLV set regdomain command
authorErik Stromdahl <erik.stromdahl@gmail.com>
Sun, 27 Nov 2016 19:37:20 +0000 (20:37 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 1 Dec 2016 11:09:03 +0000 (13:09 +0200)
There is a typo bug in the current implementation of
ath10k_wmi_tlv_op_gen_pdev_set_rd.
The conformance test limits are not set up properly.

The two arguments ctl2g and ctl5g were not used at all.
Instead, the regdomain arguments rd2g and rd5g were used
for the ctl settings as well.

Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/wmi-tlv.c

index 97b536e..f304f66 100644 (file)
@@ -1313,8 +1313,8 @@ ath10k_wmi_tlv_op_gen_pdev_set_rd(struct ath10k *ar,
        cmd->regd = __cpu_to_le32(rd);
        cmd->regd_2ghz = __cpu_to_le32(rd2g);
        cmd->regd_5ghz = __cpu_to_le32(rd5g);
-       cmd->conform_limit_2ghz = __cpu_to_le32(rd2g);
-       cmd->conform_limit_5ghz = __cpu_to_le32(rd5g);
+       cmd->conform_limit_2ghz = __cpu_to_le32(ctl2g);
+       cmd->conform_limit_5ghz = __cpu_to_le32(ctl5g);
 
        ath10k_dbg(ar, ATH10K_DBG_WMI, "wmi tlv pdev set rd\n");
        return skb;