wlan:FTM fix for iwpriv

When use iwpriv command do FTM test, wlan driver should get FTM
response and check the result. But current code only signal a
complete when process FTM response, then discard the response,
Some customer want to add some new command to:
 -control Power control mode
 -enable DPD
 -set channel bonding mode
 -support 5G channel when use set_channel command

CRs-fixed: 477522
Change-Id: Ic774b20f94c194a66cfb4f5a38032a87b591d5fa
wlan: FTM second start crash fix.

New WIPHY API, with FTM mode, WIPHY registration does not happen.
So, cfg80211 does not have WIPHY instance.
But when unload driver, try to un-register WIPHY.
As a result, cfg80211 will crash with NULL pointer access.
If FTM mode, do not try to un-register WIPHY.

Change-Id: I598bab112c0dc351e36270252b55ca3747047302
CRs-fixed: 546549
wlan: reduce logging level of vos packet log

reduce the logging level of vos packet log
which is printed when low resource condition
is hit, so that the watchdog does not time out
due to excessive logging before the system has
time to recover

CRs-Fixed: 546188
Change-Id: Ib0f12fd9617756302ff424ac816ffbdf147b8075
wlan: Fix for FTM mode spin lock crash

During Open adapter in FTM mode disable TX queue and initialize
spin lock for each wmm access category

Change-Id: Ie28d046046535564afd30182826ca9c71797c802
CRs-Fixed: 547323
Wlan: Revision 3.2.3.178

Revision 3.2.3.178
wlan: Fix crash when the regulatory notifier is called unitialized

When the driver regulatory notifier is called, it may also get called
even when the driver did not initiate regulatory_hint. In such a case,
the completion variable linux_reg_req can be unitialized and lead to
a crash.

CRs-fixed: 538940
wlan: Change for IBSS Peer Info in interface file.

In order to make IBSS peer feature work, we need be
in sync with firmware interface file. After this
change firmware interface file and driver interface
file will be same for this feature.

Change-Id: I984560bb143cd15e19110f92ba0eecf982e57a5e
CRs-Fixed: 548264
wlan: Fix for VOS_ASSERT while starting heartbeat timer in IBSS mode

limActivateHearBeatTimer() function does not handle active mode offload
grecefully that causes the caller of this function to panic. TX_SUCCESS
should be returned if we are not doing anything in this function. Instead
it is returning error code, which causes VOS_ASSERT in the caller.

Change-Id: I1547be7c42b8a79ed25b69f62310a7f05d451d25
CRs-Fixed: 531195
Delete PMKID from the cache when forget the AP from GUI

Wlan driver still include cached PMK ID in assoc Req after
forget AP and connect back.Delete the PMKID from the cache
in the driver as part of disconnect from supplicant.

CRs-fixed: 536894

Change-Id: Id248dc495d02769ad246a552fe88c4c0fbe8c06d
Advertising WPA_NONE in beacon and probe resp of IBSS

The patch advertises wpa IE(WPA_NONE) in beacon and probe response
frames transmitted by IBSS network.

Change-Id: I9b3c1de74fb0f9e5ec3d4a150ac40c8be02e1c4b
CRs-Fixed: 547752
Wlan: Revision 3.2.3.179

Revision 3.2.3.179
Wlan: Revision 3.2.3.180

Revision 3.2.3.180
wlan: Updating country code on best AP in scan list.

Country code with 11d  should be updated at once in one scan.
The criteria to choose best AP should be on basis of best RSSI.
Moreover, Next time country Code should update when in next scan,
best AP has atleast 30% less rssi than current AP's Rssi.

CRs-Fixed: 545795
Change-Id: If03c219cbe7940209af01b2e39227681996b4e46
wlan: Logging enhancements in SME and PE

1. Added new vos modules PMC.
2. PMM and PMC are merged as one vos module id PMC.
   PMM logs will use PMC vos module id now.
3. SCH module id is merged into PE only i.e SCH logs
   use PE module ID only.
4. Replaced limlog as schlog in SCH files.
   SCH will use schlog api now.

Change-Id: I4e1e4f9de5649b5cb12ff3ce2b1d788aaf4f1c42
CRs-Fixed: 536698

Conflicts:
	prima/CORE/MAC/src/pe/pmm/pmmDebug.c
	prima/CORE/MAC/src/pe/sch/schDebug.c
	prima/CORE/SME/inc/smsDebug.h
	prima/CORE/SYS/legacy/src/utils/src/logApi.c
Wlan: Revision 3.2.3.181

Revision 3.2.3.181
wlan: Quarky functional fail fix

If NL client try to registration,
Kernel driver broadcast KD ready notification to reset
application status.

Change-Id: I1b6135c86c453f4aa03cbe8c69070232dc7ff154
CRs-fixed: 539232
wlan:Fix for BD rates in STA mode for probe request

In STA mode probe requests are sent at PEER STA Rates which
resulted in sending probe requests at 6Mbps in 2.4GHz mode.
Fix is to use BD rates instead of PEER STA for sending the probe
requests.

Change-Id: Ia9409e3f83eadd462df2da6c5cb0d6bce46beaeb
CRs-Fixed: 538112
wlan: Align PNO channels buffer size of WDI with MAC.

Difference in buffer size defined for PNO channels accross
the modules in UMAC leads to buffer overflow and memory corruption.
This commit aligns buffer size defined for PNO channels in WDI
with MAC.

Change-Id: I37b5dad0bef2bcca8a8f8e89950a572226b17656
CRs-fixed: 550262
wlan: Initialize memory allocated for PNO request.

Use of uninitialized memory space leads to have unexpected/invalid
value to PNO request parameters, causing inconsistency in behavior
of the PNO feature. This commit addresses the issue by initializing
memory allocated for PNO request.

Change-Id: I5e4289ac2b92e3dfdbd3cba54642da1a05c3cc00
CRs-fixed: 550572
wlan: Support to have IE passed by supplicant through sched_scan interface

Supplicant shall add extra ie information as part of PNO request
to the driver, This commit publishes max_sched_scan_ie_len
to NL interface to support such PNO scan request.

CRs-fixed: 546962
Change-Id: I73c41133565c76901bba748ba2cd49ad5a4ca4ff