wcn36xx: Don't use the destroyed hal_mutex
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 11 Jan 2017 14:32:21 +0000 (16:32 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 12 Jan 2017 10:43:59 +0000 (12:43 +0200)
commitd53628882255481b710641dd0118fbd80af6e983
treea8ad39ed4a2af51681b3c976161d22bd034327c0
parent43efa3c0f241e04862be8e6a68ff765d36cde1ba
wcn36xx: Don't use the destroyed hal_mutex

ieee80211_unregister_hw() might invoke operations to stop the interface,
that uses the hal_mutex. So don't destroy it until after we're done
using it.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wcn36xx/main.c