OSDN Git Service

wil6210: fix protection against connections during reset
authorHamad Kadmany <qca_hkadmany@qca.qualcomm.com>
Wed, 5 Apr 2017 11:58:08 +0000 (14:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 08:17:53 +0000 (09:17 +0100)
commitc7fd50a893f31450bafba5ccd0adb09a2de1ab55
treede5c2ca1cc4f17d9353beb3d9cc39996aa98d264
parent0a83f6943ae16a73a3f6af5c89f2a453129406f4
wil6210: fix protection against connections during reset

[ Upstream commit b819447dfc4bd120c9d6cd8521252d544fce8fe7 ]

Existing code that ignores connection events during
reset flow will never take effect since it locks the
same mutex taken by the reset flow.

In addition, in case of unsolicited disconnect events ignore
those as well since device is about to get reset.

Signed-off-by: Hamad Kadmany <qca_hkadmany@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/wil6210/wmi.c