wlan: Fix for null pointer dereference.

Access the pAdapter after the value is assigned from the pAdapter node.

CRs-Fixed: 509299
Change-Id: Ic57dc44ac5bb1d57cb3a4981f6822d36e94a3e89
wlan: Multicast Address Filter cleanup

Instead of calling wlan_hdd_set_filter, using sme_8023MulticastList to
configure MC Address Filter list and not use up the filter IDs.

Change-Id: I45088586b5699a293abd27b3807b04d329b3601b
CRs-fixed: 506890
WLAN:Different short preamble capability in Beacon&Probe

send unicast probe request when AP caps change detected

1. If the Short preamble bit in beacon
is not matching with existing short preamble bit
settings(stored from probe response), then send
directed probe request frame instead of sending AP
caps changed event to SME.
2. After receiving probe response frame compare the
capabilities and if it still not matching then send
the AP caps event to SME.
3. If the capabilities in probe response are matching
with the existing settings then mark this event and
ignore all subsequent false alarms

Change-Id: If58c12e2ed8839645098a24533c943f8b348e31a
CRs-Fixed: 488403
API changes for nv3

Integrate changes made in firmware Pronto
Updated review comments

CRs-fixed: 474382
Change-Id: I227ce12a4c9492e2f32fd2ebdca6ccafd8e40f12
wlan:Fix for wake_lock list corruption issue

Destroy wlan_wake_lock if WCNSS driver fail to downloads NV data

Change-Id: I0aaeae01f9221aaaf110e64268225ad51ae523b5
CRs-Fixed: 508097
Wlan: Release 3.2.3.146

Release 3.2.3.146
wlan: Update the RegDomain table in vos_nvitem.c

The RegDomain table is updated properly according to latest RD research.

Change-Id: I3c34f2a6cc978e76417489883bdbe575b75a4407
CRs-fixed: 510146
wlan: Add NULL check before accessing configBssReqParam

Added NULL check before accessing configBssReqParam in
WDA_ProcessConfigBssReq and before sending the SIR_HAL_ADD_BSS_REQ
in limProcessMlmFTReassocReq to avoid NULL pointer dereference
at race conditions. Also added log in limProcessFTPreauthRspTimeout.

Change-Id: Iccb73d90e9b04e040f996c89d42dd7a437ed08d7
CRs-fixed: 459411
wlan: Minimizing the deauth process log

Log "received Deauth frame in DEAUTH_WT_STATE(already
processing previously received DEAUTH frame).. Dropping this.."
prints excessvily and leads to WD bark.Minimizing  the log
for every 15sec

Change-Id: I0287fafb46a5de92c5474d45ad9062b405556bcb
CRs-Fixed: 455636
WLAN:Drop the deauth frame when LIM is already processing one.

In eLIM_SME_WT_DEAUTH_STATE, deauth frames will be dropped
at the limProcessDeauthFrame() and print the debug message at
every 15th deauth frame.

Change-Id: I3171ef038ddc1d3606cb6a6073436d5c493b8d41
CRs-Fixed: 482708
wlan: Fix for passing multicast traffic over IBSS

The packets were going out with broadcast address since TL was not
using the destination address from the incoming packet. Also the
packet was being sent out on DPU descriptor which is configured
for sending unicast traffic causing the packet to retransmit. The
multicast packets don't have ACKs, hence there was MAC retransmit

Change-Id: I1e80f97a25595d6d576b21c462b02c2ae3d7388d
CRs-Fixed: 509454
wlan: Vacate DFS channel if there is  no acivity within 10 sec.

As per FCC requirement, DFS channel should be ceased within 10 sec,
if there is no activity on DFS channel.

CRs-fixed: 511605
Change-Id: Ie48e9f6f7cf5558e7c0c2b145495d8946a68cc1e
Wlan: Configuration Knob to enable/disable adaptive rx drain

Configuration Knob to enable/disable Adaptive Rx drain feature

Change-Id: Icb1b7a63688f2442fa9977b38cd940eda946a51a
CRs-fixed: 500104
Wlan: Configuration Knob to enable/disable adaptive rx drain

Configuration Knob to enable/disable Adaptive Rx drain feature

Change-Id: I8751f774c26799060ff4204bc87f5edc771964fd
CRs-fixed: 500104
Wlan: Revision 3.2.3.147

Revision 3.2.3.147
wlan: don't allow get/set okc/ccx,if ccx/okc/11r all supported

As per customer revised requirements,if the DUT supports 11R/CCX/OKC
simultaneously then GET/SET OKCMODE/CCXMODE operations are not
allowed. (it should return FAIL)

Change-Id: Id61decc51891c1225ffad345fa0b22f942b33a8e
CRs-Fixed: 509644
Implementation of FR-878

To support MCC-Coex DHCP indications are required.

CRs-fixed: 385843
Change-Id: I24b3c81f294d80e2a3e9a5ac33874f285b1aa7e7
Wlan: Revision 3.2.3.148

Revision 3.2.3.148
wlan: low throughput regression fix

To fix HW problem, introduce usleep between each frame drain
over RX thread, Sleep with RX thread made RX throughput issue.
Change sleep as busy wait, not to lost thread continuity.
Wait only happenn with small size of frame,
since crash only happen with small size of frame fast draining.

Change-Id: I562efe30ea0cde207da117b266553f0149cd1181
CRs-fixed: 508231
wlan: DTIM3 changed to DTIM1 after roaming

High level summary of the issue is DTIM3 getting changed to DTIM1
after roaming.
Root cause:
1. gEnabledModulatedDTIM=3 is configured and after the initial
association and wlan enters early suspend (When LCD goes OFF),
DTIM period (Modulated/Dynamic DTIM) is sent down to FW as a part
of SET_POWER_PARAMS_REQ and this triggers Exit/Enter BMPS.
2. During ENTER_BMPS_REQ in FW, Listen Interval (LI) is computed
based on Modulated DTIM (Which is 3 here), LI = LI * ModDTIM
Hence LI becomes 3 (DTIM3).
Modulated DTIM is stored per BSS (bssIdx = 0 in this case)
3. When roaming is triggered, as a part of this DELETE_BSS_REQ
in FW zeroes out Modulated DTIM to 0 (bssIdx = 0)
4. After successful roaming, next Enter BMPS_REQ does not consider
Modulated DTIM as this is 0 and LI remains 1 (DTIM1)
Because the LCD is already OFF (wlan suspended), this does not
trigger SET_POWER_PARAMS_REQ to change DTIM to 3.

Fix:
The fix is to identify, if the wlan is already in early suspend
during reassociation; if so then send down SET_POWER_PARAMS_REQ to
FW before the next ENTER_BMPS_REQ so that LI is recomputed and it
regains to DTIM3.

SET_POWER_PARAMS_REQ is sent after the SET_KEY_COMPLETE and before
ENTER_BMPS_REQ

Change-Id: I53f69ec4be7f25083a71db48ed16f1668ab1ceb5
CRs-Fixed: 513043