diff options
author | Bartosz Markowski <bartosz.markowski@tieto.com> | 2013-09-26 11:47:07 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2013-09-27 07:58:14 -0400 |
commit | 553215592f148ec94151a11d4f13ebf8fb2ca516 (patch) | |
tree | 20366e6373e408c864ac9b4372f011f87fe9839a /drivers/net | |
parent | b7e3adf907f92c2749d2a8b32bff950c2a90b3fb (diff) |
ath10k: warn if give WMI command is not supported
This will show and make it easier to track the API
differences in the new AP firmware.
Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/wmi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index cfb208244999..8386050b1010 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c | |||
@@ -390,6 +390,12 @@ static int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb, | |||
390 | { | 390 | { |
391 | int ret = -EINVAL; | 391 | int ret = -EINVAL; |
392 | 392 | ||
393 | if (cmd_id == WMI_CMD_UNDEFINED) { | ||
394 | ath10k_warn("wmi command %d is not supported by firmware\n", | ||
395 | cmd_id); | ||
396 | return ret; | ||
397 | } | ||
398 | |||
393 | wait_event_timeout(ar->wmi.tx_credits_wq, ({ | 399 | wait_event_timeout(ar->wmi.tx_credits_wq, ({ |
394 | /* try to send pending beacons first. they take priority */ | 400 | /* try to send pending beacons first. they take priority */ |
395 | ath10k_wmi_tx_beacons_nowait(ar); | 401 | ath10k_wmi_tx_beacons_nowait(ar); |