mwifiex: ignore processing invalid command response
authorSwati Kushwaha <swatiuma@marvell.com>
Fri, 21 Jun 2019 14:14:44 +0000 (19:44 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Jun 2019 04:52:45 +0000 (07:52 +0300)
commit74f202aaae0a952e0f14b87821f42d75d09b8a78
treeb629e4de45d4e87c929bc49daa186e45e69775a8
parent7afb94da3cd8a28ed7ae268143117bf1ac8a3371
mwifiex: ignore processing invalid command response

Firmware can send invalid command response, the processing of
which can attempt to modify unexpected context and cause issues.
To fix this, driver should check that the command response ID is
same as the one it downloaded, and ignore processing of invalid
response.

Signed-off-by: Swati Kushwaha <swatiuma@marvell.com>
Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/cmdevt.c
drivers/net/wireless/marvell/mwifiex/main.h