mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
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>
This commit is contained in:
committed by
Kalle Valo
parent
b7e3adf907
commit
553215592f
@@ -390,6 +390,12 @@ static int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb,
|
|||||||
{
|
{
|
||||||
int ret = -EINVAL;
|
int ret = -EINVAL;
|
||||||
|
|
||||||
|
if (cmd_id == WMI_CMD_UNDEFINED) {
|
||||||
|
ath10k_warn("wmi command %d is not supported by firmware\n",
|
||||||
|
cmd_id);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
wait_event_timeout(ar->wmi.tx_credits_wq, ({
|
wait_event_timeout(ar->wmi.tx_credits_wq, ({
|
||||||
/* try to send pending beacons first. they take priority */
|
/* try to send pending beacons first. they take priority */
|
||||||
ath10k_wmi_tx_beacons_nowait(ar);
|
ath10k_wmi_tx_beacons_nowait(ar);
|
||||||
|
|||||||
Reference in New Issue
Block a user