wlan: Correct reason code when teardown link happens.

driver use a locally generated event when doing tear down of link.
supplicant is not aware of that event, so it's better to pass zero.
CRs-Fixed: 464293

Change-Id: Id96af47ff9689b590f7b1f2005368f7bb6c3a5ae
wlan: protect ULA callback against adapter state changes

An issue was observed where when wlan_hdd_ula_done_cb() was invoked
the completion variable used to synchronize threads was in an
uninitialized state, leading to a crash.  Fix this by using a new
completion variable that will not be cleared when the adapter changes
state.  In addition add additional protection to make sure the adapter
is valid before referencing the completion variable, and add logging
when the wait_for_completion() times out so we know when the driver is
in an inconsistent state.

Change-Id: Id7687792e8e9aad20b32754f989fa3a41ab7cc85
CRs-fixed: 455822
wlan: Issue disconnect when AP Capabilities Change detected.

When AP capability change detected the driver is issuing the
disconnect and connect again internally. If the reassociation
fails then the status of supplicant and driver are going to be
in out of sync and leading TKIP replay counter errors.
Issue disconnect after disconnection supplicant will scan and
connect to the same AP.

Change-Id: I7b229b62c3a38741e683d1e6485129b6c496e077
CRs-Fixed: 439516
wlan: Release 3.2.3.86
wlan: wda: remove obsolete "INTEGRATED_SOC" featurization

The current driver is designed around an "integrated SoC" solution
where the WLAN processor and the Application Processor are integrated.
But the driver is based upon a prior driver that supported a
non-integrated discrete solution.  During the time the driver was
converted from a non-integrate to integrated solution conditional
compilation was introduced so that both architectures could be
supported by the same driver.  But the non-integrated solution is no
longer supported by this driver, so remove all of the conditional
compilation so that the current driver will be easier to support.
Merge "TDLS Support for the P2P interface"
Merge "Fix for the crash while sending TDLS mgmt frames"
Merge "Fix for link not establishing in multiple peer scenario"
Merge "Pass TDLS Peer Capabilities for Rate Adaptation"
Merge "Fix the compilation issue"
Merge "wlan: Release 3.2.0.82"
Merge "wlan: Avoid invalid channel configuration for GO/SAP."
Merge "wlan: maxTxPower should fall between the range"
Merge "wlan: iwpriv getRoamRssi to query RSSI from roaming engine"
Merge "wlan: Memory leak fix in WDA/WDI"
Merge "wlan: Kbuild: remove obsolete -D flags"
Merge "wlan: remove obsolete VOSS_ENABLED featurization"
Merge "wlan: remove FEATURE_WLAN_UAPSD_FW_TRG_FRAMES featurization"
Merge "TDLS: Fix for low throughput in 2.4GHz"
Merge "wlan: encrypt gtk 2/2 message during wpa authentication"