wlan: IBSS Support

The current code does not work when we start the driver in ad-mode
mode.The following changes are in the driver to support IBSS.
1.Register Broadcast station ID to TL after HDD gets the indication
IBSS started.
2. New API introduced in TL to update the BSSID for the station.
3.The BA Activity check timer was handle for IBSS case as well.
4.IBSS Peer Management specific changes to support multiple peers
joining the group.

Change-Id: I83122840f418dd5678d444c0107c4fa22b3b35f1
CRs-Fixed: 477796
[PMC]: Retry enter BMPS

Retry to enter the BMPS if the pmcPowerSaveCheck returns
status as eHAL_STATUS_PMC_NOT_NOW

Change-Id: I66608fef0bec4e2a3c2aa31e6dfea4c3b8364b46
CRs-fixed: 478036
QUIPC: Enable RTT1 in p2p mode

Removed condition that kept RTS/CTS scans from being served
by the wlan driver when in P2P mode.
CR-Fixed: 480640

Removed tabs and execute permissions
Removed execute permissions
Corrected indentation

Change-Id: I0de7ad1ed32b4913a886828025ff92534e6e95f5
WLAN:Disable channels based on country code

-Added functionality to disable channels for a specific country
 during the valid channel preaparation in the API
 csrApplyChannelPowerCountryInfo().
-Removed code related to gIgnore_chan165 as it is taken care
 by the added functionality.

Change-Id: If0a998528aeb99093e98ddd17dfc2d18b52356e7
CRs-Fixed: 478088
wlan: Stop DXE healthMonitorTimer when host driver unloads

When DXE enters low resource condition, it will set a healthMonitorTimer
which won't be stopped when host driver unloads. This will cause the timer
expires after host driver unloads and leads to prefetch abort. This fix
stops the timer when DXE stops.

Change-Id: I7658a4d067fc054bd55e558d25f9991da9cd493a
CRs-fixed: 476250
Fix issues found in static source code analysis.

Resolve the generic issues found in static source code analysis.

Change-Id: I235fff9fdfeb91f3350e39ac145c1c8f5461c0f2
wlan: Release 3.2.3.109

wlan: Release 3.2.3.109
wlan: LFR2.0 Host Driver Changes

Master Gerrit for WLAN_FEATURE_ROAM_SCAN_OFFLOAD.
Includes all the Host Driver Changes.

Change-Id: I1c7adb30b24b49c6f2b5c3de3394831812b1c6d0
CRs-Fixed: 460568
Stop baActivityChkTimer only if last session is LINK_IDLE_STATE

When stopping baActivityChkTimer, check if last active session
is IDLE instead of concurrency_session_running().
Expand existing API to get activeSessionCount whether to filter
 out bssId or not.
Turn on critical BA related message to further debug BA related
issue.

CRs-Fixed: 477627

Change-Id: Iffb34e5ecbda6906d80ceb7a76fb1589c637cf8b
TDLS sends correct htCap/vhtCap IE for 11n/11ac

Remove hardcoded 11ac VHTCap and fill correct HTCap/VHTCap IE
in TDLS Setup Req/Rsp and Discovery Rsp frame based on current
dot11 mode.

Change-Id: I6478ef2d858d682ae7100d897fd2ec4652dd264c
CRs-Fixed: 479872
Fix rejecting TDLS change station exhausts RX buffer

Accept multiple  add station and use existing staId.
Accept multiple change station although it is connected as long as
 staId is valid.
Make sure tdls_mgmt() doesn't call sme API while it is pending,
because it causes both pending and new tdls_mgmt() to fail.
Added print link status in tdls_oper() for ease debugging.
Accept NL80211_TDLS_ENABLE_LINK as long as link status is not
CONNECTED.
In RX of unicast data packet, even if staId doesn't exist, try to
map as if it is received from AP if bssid is matched to AP, rather
than caching or dropping it. It helps avoiding both packet and RX
buffer loss.

Change-Id: I65764bdfaac4abd4cd6b3a5b8214c609cde13e62
CRs-Fixed: 459177
wlan: fix issues found in static code analysis

Fix issues in BAP module, found in static code analysis

Change-Id: I013653e6aee6db15057ff05b1b93b53f8b6caa28
Change the default config method to handle diff BI

Change the default config method used to handle the different
BI scenario. Changing default behaviour method from 2 to 4.

Change-Id: I84e600ac90dae4dfc4e1d95f19e7fd85705c127a
CRs-fixed: 482384
wlan: Thermal Mitigation, UDP packet delay fix

When UDP TX only test case,
next TX frame arrive 3 seconds later after resume TX Q.
TCP traffic or bi-directional traffic is OK.
So, when test with iperf traffic, during 3 seconds no OTA packet.
When resume TX Q, WLAN driver should call wake_queue API to
schedule queue immediatly. Just start_queue API will make delay.

Change-Id: I2a264c5fb2879764a921d1d0c69c3c4a25f4a6cb
CRs-fixed: 463021
wlan: advertise ADHOC support to cfg80211

Currently the WLAN driver does not advertise that it can support any
interfaces of type NL80211_IFTYPE_ADHOC.  This prevents IBSS from
working via cfg80211.  Add NL80211_IFTYPE_ADHOC as a supported mode
which is mutually exclusive with AP mode.  In addition add an
NL80211_IFTYPE_ADHOC entry to the wlan_hdd_txrx_stypes table.

Change-Id: I0900eee1265b74545086c94198602627cc404590
CRs-fixed: 477796
wlan: Support to disable 11ac dynamically.

For some of the countries device should not be in 11ac mode.
When new country code is set through COUNTRY IOCTL,
host driver will check whether 11ac needs to be disabled for this
country and it changes mode accordingly which would take effect in
successive association request unless driver is unloaded.

CRs-fixed: 473375
Change-Id: I427e6a1052958ed8ae638935fd7b5539715e6c1e
wlan: Release 3.2.3.110

wlan: Release 3.2.3.110