wlan: rrm: Fix Empty Beacon reports in table mode

With the existing implementation, empty beacon report is sent
by STA when AP requests for beacon report in table mode and when
STA doesnot have info of any BSSs other than the one AP that it is
connected to. Changes are made for STA to send details of the
AP it is currently associated to.

Change-Id: Ic4e3878818744cc3f550413f025328df6939d887
CRs-fixed: 572335
wlan: Fix for HDD queue disable issue during peer departure

IBSS does not further multiplex the 4 queues/AC to per-STA queues.
This causes issues when the peer walks out. The tx queues will be
disabled for other peers due to queue flush causing the data stall
for other peers

Change-Id: Iac37f8d3e2db734b953fe76e5fee12a02897ed76
CRs-Fixed: 561995

Conflicts:

	prima/CORE/HDD/src/wlan_hdd_tx_rx.c
wlan: Fix for IBSS ping failures

Ping failures were observed when the security mode was changed
from open to secure and vice-versa.

Change-Id: Icfe56b963b60a7937e07737039a995a1bb57d151
CRs-Fixed: 567719
wlan: Fix to enable short slot operation in IBSS mode

Short slot operation was not enabled due to historical reasons.

Change-Id: If468f428641900e82776a454105cd6a62ffb30de
CRs-Fixed: 563210
wlan: Fix to resolve ping issue when joiner leaves and rejoin IBSS

Issue is ping doesn't work once joiner leaves the IBSS network and
rejoins it.

Change-Id: I5426e3407e1d143d8ac4f0813c815c22b322986e
CRs-Fixed: 562451
Fix the buffer overflow issue observed in static code analysis.

Fix the possible buffer overflow in IE parsing.

Change-Id: I1a386ac09dbe30562fbd84739eb8d61c6a09b001
CRs-Fixed: 553937, 553941
Use BSSID provided by kernel/supplicant for IBSS

Should use the BSSID provided by kernel/supplicant layers while creating
IBSS.If the BSSID is not provided by kernel/supplicant auto generate
the BSSID.

Change-Id: Iccd17fbb9dac8d69bd2e1923543a6057c75529af
CRs-Fixed: 549582
wlan: Fix txqueuelen to improve packet loss in UDP traffic

txqueuelen is set to 100 currently for wlan0 interface, changing
this lengh to default kernel provided length to improve the packet
loss to UDP traffic in general.

Change-Id: I95a4c7574e2eea88ec00e0db7298185df8181a24
CRs-Fixed: 571986
wlan:  wlan_hdd_wext Userspace data copy fix

Use copy_to_user and copy_from_user for
copying data to/from user space.

Change-Id: I98fb6352b654af8f78160738e7ccd902c3c70031
CRs-Fixed: 561028
wlan: Fix iw_priv_args set_args

One extra byte may get wasted with this expression.

Change-Id: I9b710d2c779247f7374a7e44e27c90f95a870059
CRs-Fixed: 499139
wlan: reset scan offload state after a subsystem restart

Reset the scan offload state after a subsystem restart so
that the firmware can be re-programmed to offload neighbor
scans immediately after the wireless subsystem is brought out
of reset.

Change-Id: I05c2937d8adbe588c4055a61574796e93be5a0c2
CRs-Fixed: 557549
uint32 value is set to uint16 parameter

change the len size to 32bit. and explicit typecast to 16bit.
to avoid static code analysis error.
CRs-fixed: 576040

Change-Id: Iebda14547a0c63ce8b7dd24e1a8f2b06e97103e6
wlan: Set channel properly when enable channel bonding

The ioctl to set channel bonding was Setting the channel
statically. But if channel bonding is not 0, the channel
should be set according to bonding mode.

Change-Id: I2e2810fba2598feae171235b2780219a39e9b9ce
CRs-Fixed: 565729
wlan: Fix kernel panic issue after csrRoamCopyConnectedProfile

A memory allocation failure in csrRoamCopyConnectedProfile()
results in an assert on an access to this unallocated memory.
Thus check for the status and return a failure on error.

Change-Id: I7485b7ce35d7e7d86fab4dffff21212260eb7f0f
CRs-fixed: 580193
Fix for Heartbeat failure with specific AP

For non HT dot11 modes host is not sending the correct cb mode
to firmware.As a result we see heart beat failure with specific AP.
this commit passes the correct cb mode to firmware.

Change-Id: I59ae63186b03000d033b608d5e89c1a8aa93f60d
CRs-fixed: 560977
wlan: Userspace data copy fix

Use copy_to_user and copy_from_user for
copying data to/from user space.

Change-Id: I07ed5361b439f4bcd61bbf693cc17c950f5b2660
CRs-Fixed: 561022
wlan: Enable gEnableVSATSupport in WCNSS_qcom_cfg.ini

Significance of gEnableVSTASupport = 1 is:
it enables GO to connect 32 CLIs and SAP to connect 32 STAs.
Currently it is manually enabled.Only 10 Stations to SAP and
10 CLIs to GO could be connected without enabling gEnableVSATSupport.

Change-Id: I5790a98592135b540ed578fec89f1da341325c5f
CRs-fixed: 565184
wlan: Handle disconnect in connecting state of Wi-Fi.

Disconnect command is being dropped during wifi
connecting state, which results in mismatch of the
wifi states between nl80211 layer and wlan driver.

To mitigate this issue handle disconnect command in
connecting state of wifi.

CRs-Fixed: 582830

Change-Id: I1d80bfdaa8f05bacf67be50647f73252c7fa8b3f
wlan: Crash due to wrong roaming scan state.

In limSuspendLink, lim is calling init scan and even if
init scan fails it continue ahead. Now in limResumeLink
there is no check to verify that init scan failed and
thus avoid sending finish scan.

Added check in limResumeLink if scan init was
successful or not. Send finish scan only when init
scan was successful.

Change-Id: I66823acab5ceed9d7633ffd429f42074855d25eb
CRs-Fixed: 588494
wlan: Avoid connection to an already existing session.

This commit ensures to return a failure on a connection attempt to a
network with which a concurrent interface is already associated.

Change-Id: I94e2fb6091a0e2e8a915fa7041794c0b98c6d785
CRs-Fixed: 550579