wlan: Add NULL check in hdd_open_adapter fuction

Add NULL check for mac address in
hdd_open_adapter fuction.

Change-Id: Iad544864dacb5f2ce3e25980a3ad73b9cbf6aff1
CRs-Fixed: 623797
(cherry picked from commit 68c8e35a27576eef48968aa9bcba711478f596bf)
wlan: Print active PE Session during IMPS req if any.

1) Print Active PE Session's BSSID, sessionid
if any session is active while pmmEnterImpsRequestHandler is
called. Also dump the last 100 mtrace.

2) Print Bssid and session ID while creating and deleting the
PE session

Change-Id: Ife60475f48959f4f4a6c0dd8659ca2fc108b7f44
CRs-Fixed: 620323
(cherry picked from commit d1570d33c070694bbae75cbbdac98b2c641208a8)
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)
Change the log level for rrmGetMgmtTxPower log print

rrmGetMgmtTxPower: txpower from rrmPEContext is having LOGE level.
Change it to INFO.

Change-Id: Ie8e335284111832927c23b8caf81405c28cb858b
CRs-Fixed: 614737
wlan: Adding MTRACE functionality to HDD

This  fix will add  MTRACE funcionality to HDD

Change-Id:Ica270091034f3373a786a52c35cd240110ee9823
CRs-Fixed: 594600
(cherry picked from commit c7437b7abe0b059f7b3a050c4cb4ca02f3240e30)
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
(cherry picked from commit c2b71e8bd2e58f1c0c4a833c38760f42989e9401)
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 : [HDD_ACTION_FRAME]Display action frame info with wlan_hdd_action

The received action frame info is not available over the logs while
getting processed in hdd layer. Printing of action frame info,
based on the type is added to the existing print.

Change-Id: I5fae1c5eab684f79317208eb578eea207fcbc0ec
CRs-Fixed: 590432
(cherry picked from commit 95af7145ffa7f77eb5e2786dfc30d0cf239816cd)
wlan : rename wlan_hdd_action to wlan_hdd_mgmt_tx

The API name is changed to wlan_hdd_mgmt_tx, as the old API name
is not appropriate for managment call back.

Change-Id: If9c46a1f1316c21cff27da42532919bd68f19e91
CRs-Fixed: 590432
(cherry picked from commit 57a2bd15e9e197f90cc7c3ed7d02f120d043c0ea)
wlan: Revision 3.2.3.256

Revision 3.2.3.256 includes:
 wlan : rename wlan_hdd_action to wlan_hdd_mgmt_tx
 wlan : [HDD_ACTION_FRAME]Display action frame info with wlan_hdd_action
 wlan: Adding FIQ in WDI before panic.
 wlan: Don't process reg_notifier during SSR and load
 wlan: Adding MTRACE functionality to HDD
 [wlan] Change the log level for rrmGetMgmtTxPower log print
 wlan: Check for logp in progress in WDA api .
 wlan: Print active PE Session during IMPS req if any.
 wlan: Add NULL check in hdd_open_adapter fuction

Change-Id: Ic4a3c8b76fd3772ab65b564c39e316cf4724b8e6