wlan: Fix for unregistering IPv4 notifier rightly.

Correct the register and unregister sequence of IPv4
notifier block.

Change-Id: Ib8d77153adb2d71295e2a77a8e228ec55f967f2a
CRs-Fixed: 599742
wlan: Fix for handling IPv6 notifier block rightly.

Correct the register and unregister sequence of IPv6
notifier block.

Change-Id: I9fe6b72101399f76d6d9da621fd730668312b2be
CRs-Fixed: 600300
STA is disconnected with specific AP IPTIME N904NS

STA gets disconnected with AP IPTIME N904NS when AP is configured
for WPA1 + TKIP on CH 161.

Change-Id: I401df8d577e467e410ebfa00bc046f8c7215b78d
CRs-Fixed: 599931
wlan: avoid race condition while accessing wpalPacketAvailableCB

wpalPacketAvailableCB can be called from the MC_Thread as well
as the RX_Thread, the race condition can occur when the callback
is called from the MC_Thread and immediately set to NULL after
the function returns and in between that the RX_Thread running
on another core has detected a low resource condition and set
wpalPacketAvailableCB before the MC_Thread sets it to NULL.
To avoid the race conditions always set/reset the values to
wpalPacketAvailableCB in RX_thread only.

Change-Id: Idb1700287186df4b3ede45324cfa2062b1b81d9e
CRs-Fixed: 599184
wlan: WDA_DS_FINISH_ULA message processing 64-bit clean

Due to different pointer size's in ILP32 and LP64,we are facing
compilation issues when typecasting pointer to integer or
vice-versa.These are now resolved so that the WDA_DS_FINISH_ULA
message can be properly processed on 64-bit systems.

Change-Id: If6bca72b2f8aee5a61f893ac16e7b9a98f3c20d3
CRs-Fixed: 582086
wlan: Fix 11d regulatory issue

For all countries whose reg domain is FCC, UNII-1 band  channels
should be blocked for GO operation.Add check to block these channels
for all countries whose REGDOMAIN maps to FCC

Change-Id: I7fdfe4495b584c9197e63fb4fc3c2ec62d2385fa
CRs-Fixed: 598545
wlan: Start split scan under STA+SAP concurrent mode

Start the spilt scan under concurrent mode similar like
P2pGo and P2pCli for SAP as well.

CRs-fixed: 600529
wlan: Stopping SAP leads to firmware crash.

While stopping SAP, deauth is triggered from host for all
stations and trigger is set to eLIM_HOST_DEAUTH. Same time
inactivity timer might also trigger the disassoc for the
station and it would change the trigger from
eLIM_HOST_DEAUTH to eLIM_LINK_MONITORING_DISASSOC.
In this scenareo if deauth ack is recieved, it continues
Processing ahead with trigger as eLIM_LINK_MONITORING_DISASSOC
and thus end up calling the wrong callback. Thus the original
command is never removed from roamCmdPendingList leading to
stalling of the queue.

If deauth is sent to a station, set the mlme state to
eLIM_MLM_WT_DEL_STA_RSP_STATE to avoid disassoc to the same
station and thus prevent the change in the trigger value.

The vice versa(avoid deauth if disassoc is already sent for the
station) is already taken care.

Change-Id: I71653ee4702b43d37b3fe1c6302be08b0a5edd3a
CRs-Fixed: 592827
Wlan: Revision 3.2.3.222

Revision 3.2.3.222
wlan: memory overflow/corruption in ftm test

In iw_ftm_setchar_getnone() iotctl_private_iw_point() cannnnot
be used to allocate memory to store data from userspace as
IW_SETCHAR_GETNONE is defined as odd number which assigns set_args
to zero.we assisgn memory using kzalloc here to hold userspace data

Change-Id: Ie2de8ab8c9b4ced301ab03f72302f390fa0ec488
CRs-fixed: 591712
Wlan: Revision 3.2.3.223

Revision 3.2.3.223