]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath10k: don't call quiet mode if it's not implemented
authorMichal Kazior <michal.kazior@tieto.com>
Tue, 24 Mar 2015 12:40:17 +0000 (12:40 +0000)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 1 Apr 2015 17:21:17 +0000 (20:21 +0300)
qca6174 and wmi-tlv doesn't have quiet mode
implemented. Don't even attempt to call it. This
fixes a warning when bringing first interface up:

  failed to set quiet mode period 100 duarion 0 enabled 0 ret -95

Fixes: 8515b5c79a54 ("ath10k: configure thermal throttle while powering up")
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/thermal.c

index 01bae867cae91d7a2d4dc947dc17cd2387ef3588..1a899d70dc5db5e6dea73280a42f06218285de77 100644 (file)
@@ -140,6 +140,9 @@ void ath10k_thermal_set_throttling(struct ath10k *ar)
 
        lockdep_assert_held(&ar->conf_mutex);
 
+       if (!ar->wmi.ops->gen_pdev_set_quiet_mode)
+               return;
+
        if (ar->state != ATH10K_STATE_ON)
                return;