qcacld-3.0: Fix check for last active connection to set SMM

Check for last active connection to set SMM is checked in
hdd_stop_adapter. hdd_stop_adapter can get called even when session
is still active and thus the last connection check may fail to detect
the last connection and driver may end up sending SMM req after all
vdevs are deleted as part of opportunistic timer callback.

To fix this move the check in hdd_vdev_destroy once the session is
disconnected.

Change-Id: Ie074d690ec0b2848529910bd8e1411c149d4483f
CRs-Fixed: 2423329
1 file changed