wlan: Fix hdd_ctx validation in __hdd_stop
cld to prima propagation.
During driver unload, hdd_wlan_exit is called which cleans
all adapters and nullifies hdd_ctx struct after marking
wlan interfaces down. __hdd_stop is called as part of driver
rmmod or ifconfig down by the kernel. If it is called during
hdd_wlan_exit it can return without shutting down tx queue because of
wlan_hdd_validate_context which always return false during
driver unload.Tx queues are closed beforehand in hdd_wlan_exit
to avoid any race conditions.
Change-Id: I570ee1b24b5e8fb1408e39498c99d1238dbe34ec
CRs-fixed: 986526
1 file changed