wlan: Delay SSR during active entry points.

Changes for delaying SSR if any identified entry points are active.
This is required to avoid any access to uninitialized or
deallocated data structure.

Change-Id: I2a78ef9df62713b5803d88e99ff4371dcd60f5a9
CRs-Fixed: 642329
wlan: fix macro WLAN_HDD_IS_LOAD_UNLOAD_IN_PROGRESS

The macro WLAN_HDD_IS_LOAD_UNLOAD_IN_PROGRESS does not
check if driver load is in progress, fix it.

Change-Id: I9d74f340b54bcaae22627ec90ef83b97f0c6d02f
CRs-Fixed: 647250
wlan: flush cached frames on assoc failure

Prima driver caches RX frames till the peer
is registered in TL. If assocication failure
occurs then free the cached frames so that
the RX resources are returned back to the
system.

Change-Id: I37d6c08075dc77026ad85863e4838eb5e3742fc3
CRs-Fixed: 643670
wlan: add MTRACE to record caching of frames in TL

Excessive caching of frames in TL can lead to low
resource in RX Path. Add MTRACE to log the caching
path to help in debugging.

Change-Id: Id59d6eda43538fe95e1a59ac9a3e5fb9e64257f8
CRs-Fixed: 647235
wlan: Code cleanup and Fix static analysis issues

This change is to fix the issues reported by Static
analysis tool and remove commented code

Change-Id: I03b8d0955162c58a4bc66650a19dd614a8653b84
CRs-Fixed: 642565
wlan: OBSS scan not initiated while roaming from HT20 to HT40 on 2G

- OBSS start Scan is not triggered when roaming from HT40 to HT20
on 2.4Ghz band.
- Wrong sessionId sent from SME to PE which is causing
to pick incorrect channel bonding mode and OBSS scan is not initiated.

Change-Id: I5695520877ecd6bf228d87c05a5074120aa2293b
CRs-Fixed: 640513
wlan: Fix issues found by static code analysis in SAP

Fix the issues reported by static code analysis tool

Change-Id: I42786698f28c8decae20d69a39084e3b27905501
CRs-Fixed: 642583
Wlan: Pass Actual device for DMA allocations

With Arm64 it is no longer valid to pass in a NULL pointer as the
first argument for DMA allocating API's.

While allocating DMA memory we need to pass the struct device pointer
So, made changes accordingly to pass the device.

CRs-Fixed: 638000
Change-Id: Idac94136e6cb3ca773bd295ee3502a72c4cffd2f
wlan: Revision 3.2.3.295

Revision 3.2.3.295

Change-Id: I37af67713e7be966fa28ff271990e770948381ac