]> git.baikalelectronics.ru Git - kernel.git/commit
wcn36xx: Fix packet drop on resume
authorLoic Poulain <loic.poulain@linaro.org>
Mon, 25 Oct 2021 08:28:16 +0000 (10:28 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 27 Oct 2021 07:45:26 +0000 (10:45 +0300)
commite1eb6038fe92981cb44c2e87465436855f9b758f
tree6884aac53c455cc54b4c0980f4967304870f76d7
parentfde7efe242fbc8e1dcc31834d0b2642264d5f31a
wcn36xx: Fix packet drop on resume

If the system is resumed because of an incoming packet, the wcn36xx RX
interrupts is fired before actual resuming of the wireless/mac80211
stack, causing any received packets to be simply dropped. E.g. a ping
request causes a system resume, but is dropped and so never forwarded
to the IP stack.

This change fixes that, disabling DMA interrupts on suspend to no pass
packets until mac80211 is resumed and ready to handle them.

Note that it's not incompatible with RX irq wake.

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1635150496-19290-1-git-send-email-loic.poulain@linaro.org
drivers/net/wireless/ath/wcn36xx/main.c