Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55321559 authored by Bartosz Markowski's avatar Bartosz Markowski Committed by Kalle Valo
Browse files

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: default avatarBartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent b7e3adf9
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -390,6 +390,12 @@ static int ath10k_wmi_cmd_send(struct ath10k *ar, struct sk_buff *skb,
{
	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, ({
		/* try to send pending beacons first. they take priority */
		ath10k_wmi_tx_beacons_nowait(ar);