wlan: Don't process reg_notifier during SSR and load

During load and SSR pHddCtx->hHal is assigned after calling
vos_open ( which will lead to WDA_SetRegDomain in csrOpen).
So in wiphy->reg_notifier pHddCtx->hHal might be NULL
leading to crash.

Adds a check to ignore wiphy->reg_notifier in case driver
load/unload or SSR is in Progress.

Change-Id: Iac13e462429ac100f33ad5263887a955b0a43a2f
CRs-Fixed: 623873
wlan: Adding FIQ in WDI before panic.

This fix will issue FIQ first and then panic to WCNSS
code after WDI timeout during SSR recovery,
while currently panic is issued before FIQ.
This is done so that proper ramdumps can be collected.

Change-Id: I45dd5be6547695dd412eeb81154b0d8838979d0a
CRs-Fixed:  623285
(cherry picked from commit 08337825bc990f6e294c501247b7328031aa909e)
Wlan: Wait for SSR Re-Init sucess rather than Timeout.

While unload thread is blocked during SSR, it waits for 1 second
before rechecking the status and it does so for 30 iterations
Implemented wait for completion timeout in unload driver thread,
while completion is done from SSR reinit success.

Change-Id: Ib82cfab41be2c5d98a662a6dea06ac9af86b1ad4
CRs-Fixed: 624323.
(cherry picked from commit 3be3e8613a58cf5f1765689cced021213dfcaefd)
wlan: Increase NV download waiting time of host driver during SSR

Currently  host driver will wait 5 seconds for NV download. In some cases
NV download may  need more time to complete during SSR, so increase the
timeout to 10 seconds.

Change-Id: Ie541add32bc63e7868ae9acf48356f8402a5d082
CRs-Fixed: 623092
Merge "Merge "wlan: Fix VOS Core run out of message wrapper.""
wlan: Check for logp in progress in WDA api .

This fix will check for variable isLogpInProgress
in function WDA_HALDumpCmdReq() so that it avoids
crash when dump command is issued during ssr
in progress.

Change-Id: Ib8d0c32791ab75d494ee8a569ec8f40679d98b56
CRs-Fixed:  624130
(cherry picked from commit 79ccaf238b65f4ee5f0f830a59995137f88798ed)
wlan: reprogram DXE registers if they go out of synch

TX Data stalls are observed when the DXE channel registers
are not programmed with valid DXE descriptors. Whenever
a TX stall is detected try to check if the DXE registers
are programmed correctly, if they are not, re-program them.

Change-Id: Idf35009f21567d8f9cff502198c6c1569c6b6d9c
CRs-Fixed: 609227
(cherry picked from commit 366db93e19f319417be6dc1df3aa7e5243d11053)
wlan: Reduce logging level that can cause crash

Fixes the excessive logging due to trace level VOS_TRACE_LEVEL_ERROR
in function hdd_hostapd_select_queue

CRs-Fixed: 625396
Change-Id: I816a60516e003522518184e7bc713b149de5c5f9
(cherry picked from commit 2424c4a0c5c9ce9baf039e44b9b2f3e1c6a1bc95)
Merge "Merge "Merge "wlan: Fix VOS Core run out of message wrapper."""
Merge "Merge "wlan: Fix VOS Core run out of message wrapper.""
Merge "Merge "Merge "wlan: Fix VOS Core run out of message wrapper."""
Merge "Merge "wlan: Fix VOS Core run out of message wrapper.""
Merge "Merge "Merge "wlan: Fix VOS Core run out of message wrapper."""
wlan: Avoid PNO during active session or session in progress

Avoid race condition of enabling PNO when there is exisiting
active session or during the session being establishment.

Change-Id: Ibc4641f598301c8807d953db90fed99ece4616ea
CRs-Fixed: 623887
(cherry picked from commit 3aec5c618d7c3b0ac522b6cf8876468b777bfca3)
Merge "Merge "wlan: enahnce logic to obtain the country from country IEs""
Merge "Merge "Merge "wlan: enahnce logic to obtain the country from country IEs"""
Merge "Merge "wlan: enahnce logic to obtain the country from country IEs""
Merge "Merge "Merge "wlan: enahnce logic to obtain the country from country IEs"""
Merge "Merge "wlan: enahnce logic to obtain the country from country IEs""
Merge "Merge "Merge "wlan: enahnce logic to obtain the country from country IEs"""