qcacld-3.0: Don't set adapter dev to NULL in hostapd unint
With the existing design the panic is seen with the below
scenario.
1) As a part of country change, driver takes the dev_hold and proceed
with the adapter access.
2) In another thread, del virtual iface is called which calls the
unregister netdev. This kernel API(unregister netdev) calls the
hdd_hostapd_unint where the adapter->dev is set to NULL. After
this unregister_netdev waits for the dev_put as driver has
taken the dev_hold in 1). Till this dev_put happens
unregister_netdev will wait.
3) Once the adapter access is completed as a part of 1), driver
does the dev_put with the pointer dev which is made as NULL in 2).
To avoid this crash, don't set the adapter->dev to NULL in
hostapd unint.
CRs-Fixed: 2791420
Change-Id: I1f6252a44c061b697c8d640c5558350e91a47442