Wlan: Pass struct device handle to WDA_open in FTM path

WDA_open is modified to accept device handle instead of HDD handle,
hence made changes in FTM path to pass struct device pointer.

Change-Id: I25667ffebcd6f9ad7e6c07cfbf8eaaa9bfd55ecc
CRs-Fixed: 663573
wlan: Add waveform generation with adb FTM command

Along with the adding waveform generation,
Change MCS_CB_13_B_MBPS to MCS_CB_13_5_MBPS

Change-Id: Ia1b0c36fab29e9a8dd2b51de678f5e92f436a6a6
CRs-Fixed: 661426
wlan: avoid excessive interrupts in low resource condition

If the system is out of VOSS packets and the DXE rings are
empty DXE cannot pull packets from the hardware. When this
condition occurs DXE will continuously issue DXE 'Done'
interrupts, the excessive interrupts can lead to watchdog
bite.
This change disables the DXE 'Done' interrups when
system is out of VOSS packets and DXE rings are empty, but
the other interrupt sources are still enabled. In such
a case if the system recovers and re-fills the DXE rings
with VOSS packets DXE can start copying the packets to VOSS
buffer and issue an 'ED' interrupt when the first transfer is
done. The host driver will receive and process the 'ED'
interrupt and re-enable 'Done' interrupts after recovery and
continue normal processing.

Change-Id: Ia485a252f56b323ee7217736ca79d786dccb44b6
CRs-Fixed: 640517
wlan: Fix the disconnect event being sent twice to SME.

When SME is in disassoc/deauth complete wait state and heartbeat
timeout failure happens, then do not send the disconnect indication
to SME as the disconnect as already in progress as part of deauth/
disassoc completion.

Change-Id: I60e15839298a9784d69b8e72b1e2d75f2f5b293a
CRs-Fixed: 663392
wlan: SME: Fix for issues reported by Static Analysis

Fix for issue reported by static analysis: possibility of
NULL pointer deference and array index out of bounds.

Change-Id: I3369949a0f9fd1ee4832e2a5dd791a92d9c904db
CRs-Fixed: 662544
wlan: Return set batch scan return value to user space

Return batch scan enable return value to user space

Change-Id: I124a6ed85abdf2753e11a29d7aacd9cb5ea0d1bb
CRs-Fixed: 663572
wlan: HDD: Read operatingBand from cfg instead of ini

When iwpriv cmd is used to set the apOperatingBand and channel
range, it does not update the INI param apOperatingBand  but
updates cfg param WNI_CFG_SAP_CHANNEL_SELECT_OPERATING_BAND.
During start BSS the value of operatingBand is taken from INI.

Read the operatingBand value from cfg instead of
INI parameter during startBSS.

Crs-Fixed: 664886

Change-Id: Ia930a4b069c2026b932e1524b63498e40d18d438
Wlan: Revision 3.2.3.324

Revision 3.2.3.324

Change-Id: I3b23ec78267447aa1ba9f24b2f275fc1dab26848