[RFC PATCH 2/2] wifi: ath10k: only wait for response to SET_KEY
James Prestwood
prestwoj at gmail.com
Wed Feb 11 18:11:45 PST 2026
On 2/9/26 6:12 PM, Richard Acayan wrote:
> When sending DELETE_KEY, the driver times out waiting for a response
> that doesn't come. Only wait for a response when sending SET_KEY.
We've run into the exact same thing on the QCA6174 and have been
carrying an identical patch to this for at least a year.
https://lore.kernel.org/linux-wireless/b2838a23-ea30-4dee-b513-f5471d486af2@gmail.com/
>
> Sample dmesg:
>
> [ 117.285854] wlan0: deauthenticating from XX:XX:XX:XX:XX:XX by local choice (Reason: 3=DEAUTH_LEAVING)
> [ 120.302934] ath10k_snoc 18800000.wifi: failed to install key for vdev 0 peer XX:XX:XX:XX:XX:XX: -110
> [ 120.302996] wlan0: failed to remove key (0, XX:XX:XX:XX:XX:XX) from hardware (-110)
>
> Signed-off-by: Richard Acayan <mailingradian at gmail.com>
> ---
> drivers/net/wireless/ath/ath10k/mac.c | 8 +++++---
> 1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c
> index da6f7957a0ae..73aa93043f8a 100644
> --- a/drivers/net/wireless/ath/ath10k/mac.c
> +++ b/drivers/net/wireless/ath/ath10k/mac.c
> @@ -324,9 +324,11 @@ static int ath10k_install_key(struct ath10k_vif *arvif,
> if (ret)
> return ret;
>
> - time_left = wait_for_completion_timeout(&ar->install_key_done, 3 * HZ);
> - if (time_left == 0)
> - return -ETIMEDOUT;
> + if (cmd != DISABLE_KEY) {
> + time_left = wait_for_completion_timeout(&ar->install_key_done, 3 * HZ);
> + if (time_left == 0)
> + return -ETIMEDOUT;
> + }
>
> return 0;
> }
More information about the ath10k
mailing list