wlan: check for device mode in cleanup_adapter().

Batch scan is valid only in case of STA, P2P Client and P2P
device. Added a check for the device mode while cleanup.

Change-Id: I5b336fad9eb15af82e0755c9968ebf41af6aa8e9
CRs-Fixed: 594164
wlan: Fix of WLS_BATCHING VERSION command failure

WLS_BATCHING VERSION command is failing because device mode
is coming as P2P device. Adding P2P device mode check in version
command handler

Change-Id: Iea708cfeedc8a899f929ac5887522676af94f73f
CRs-fixed: 594077
wlan: stop traffic timer during wlan driver shutdown.

While driver shutdown, traffic timer is not stopped, leading to
kernel panic while processing traffic timer handler, because of
hal context in hdd context is set to NULL, if the timer is invoked
before driver is reinitialized. So stop traffic timer in
hdd_wlan_shutdown().

Change-Id: I989f243cc29a0b9b865bde859d086262ef59e71d
CRs-Fixed: 593729
Wlan: Revision 3.2.3.210

Revision 3.2.3.210