Add Support for proprietary EAP-PROXY implementation.

This commit enhances Android.mk to include the proprietary
EAP-PROXY implemntation.

Change-Id: I7e9a0173b727158b9e1f2c2dbd4deb757d3c985e
CRs-fixed: 585456
Revert "wpa_supplicant_8 - Hostapd: Android related changes for sockets"

This is not present in wpa_supplicant_8_ti variant anymore.
Improves WiFi AP behaviour on wl12xx devices

This reverts commit 4d11042be9623f74660d930c7bcb82ae6e6fd4df.

Change-Id: I56da55fe63fb9417e142a19a7c3a9f3fad2f49a1
capabilities ERANG error fix

Add BOARD_WIFI_SKIP_CAPABILITIES flag to skip this portion of
driver setup.  Looks like it's not supported in 3.0 and 3.4 kernel

Change-Id: Id750f8f648a62e0c27a2c4597a3a9a46a349f95f
hostapd: Make install path configurable

Makefile always installs to /usr/local/bin and on some platforms,
/usr/local/bin is not in default search path.  Modified the
makefile such that bin path can be configurable so that build
system can pass appropriate path for installation. If bin path is
not specified then by default binaries are installed in
/usr/local/bin.

Change-Id: I9b5c460e62778159491209edc357f8f9888fd653
hostapd_cli: Use os_exec() for action script execution

Use os_exec() to run the action script operations to avoid undesired
command line processing for control interface event strings. Previously,
it could have been possible for some of the event strings to include
unsanitized data which is not suitable for system() use. (CVE-2014-3686)

Change-Id: If46d6cfcb9d7fc9700965e818315e5aa50fa11a5
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Set the station to authorized on assoc event for open authentication

This was done in handle_assoc_cb() in ieee802_11.c for drivers that use
hostapd SME/MLME. However, drivers that include SME/MLME implementation
do not use that function and the STA flag needs to be set when
processing the association notification. This is needed to get the STA
entry into showing the proper authorized state and to get the
AP-STA-CONNECTED/DISCONNECTED events on the control interface.

CRs-Fixed: 608957
Git-commit: 113318ad574a47d41dcb1f160d11500e2d140d7d
Git-repo : git://w1.fi/srv/git/hostap.git
Change-Id: I7effbe5bfdb4838b4cc8c79a745dc5a0ad4fe78f
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
TDLS: Pass peer's Supported channel and oper class info during sta_add

The information of the peer's supported channel and operating class
is required for the driver to do TDLS off channel operations with a
compatible peer. Pass this information to the driver when the peer
station is getting added.

CRs-Fixed: 610530
Git-commit: 3ed97271ba4e119c4413b2a77c64adbbb666a46f
Git-repo : git://w1.fi/srv/git/hostap.git
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

Change-Id: I558681da231f2fe4381e9f0c1b6155d184648d3f
WNM: Fix neighbor report subelement parser

Only the Neighbor Report element should be included here, so verify that
the element id matches. In addition, verify that each subelement has
valid length before using the data.

CRs-Fixed: 651033
Change-Id: I7179f4ab62f62864d13ef011dbf3a59156a2c7f1
Git-commit: 1aa6f953bb7b9093decc5817a2a7eaacf2eae61b
Git-repo : git://w1.fi/srv/git/hostap.git
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Track whether scan was started by us or an external program

This can be used to improve scan behavior in cases external
programs request scans directly from the driver.

CRs-Fixed: 570640
Git-commit: a5f40eff189d7f939f6434455ee63554ddb3c3ae
Git-repo : git://w1.fi/srv/git/hostap.git
Signed-hostap: Jouni Malinen <j@w1.fi>
Change-Id: I4af18ace907f4c736cec48b41f925a462d816a56
nl80211: Make wpa_driver_nl80211_data::first_bss pointer

This is needed to allow the first BSS to be removed and replaced by the
next one in the list.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Git-commit: 834ee56f7862fed6eb60c84b9ba7cae9dd64d4a7
Git-repo : git://w1.fi/srv/git/hostap.git
Change-Id: Iac50995762c41018b112d4834c9c7b8ca141b7fd
CRs-Fixed: 598923
Sync with wireless-testing.git include/uapi/linux/nl80211.h

Signed-hostap: Jouni Malinen <j@w1.fi>
Git-commit: 350574339560d75f3d037d9f9c0e03a1d9d4fad0
Git-repo : git://w1.fi/srv/git/hostap.git
Change-Id: Ifcb308413aac4686c2fdcb0fdb00b5684410a153
CRs-Fixed: 598923
nl80211: Sync with wireless-testing.git

The driver_nl80211.c changes are needed to avoid compiler warnings
with two frequency attributes pointing to the same value.

Signed-hostap: Jouni Malinen <j@w1.fi>
Git-commit: 9fcd300db65f9c19563fcd5b862eac992db50efd
Git-repo : git://w1.fi/srv/git/hostap.git
Change-Id: I4a730c9bc1b4d89b356e9d515245f0e3c58626c5
CRs-Fixed: 598923
nl80211: Sync with mac80211-next.git

Signed-hostap: Jouni Malinen <j@w1.fi>
Git-commit: 74ddd64b26355cb45cd5e2c38266f3ac7f83c97f
Git-repo : git://w1.fi/srv/git/hostap.git
Change-Id: Id9e063163b7abbb3a1da5964afc4698f71f89a8f
CRs-Fixed: 598923
Sync with wireless-testing.git include/uapi/linux/nl80211.h

This brings in nl80211 definitions as of 2014-02-12.

CRs-fixed:  643677
Git-commit: 56ec49c540ba8000a758521bfef9314c4f7e4e55
Git-repo : git://w1.fi/srv/git/hostap.git
Signed-hostap: Jouni Malinen <j@w1.fi>

Change-Id: I9b4da58df3f3d1fbabb8c733dc70f34bc6fbd6bf
Sync with wireless-testing.git include/uapi/linux/nl80211.h

This brings in nl80211 definitions as of 2014-03-25.

CRs-fixed:  643677
Git-commit: 78cd7e69de0c2eaa990a6878fa918914562bfbc3
Git-repo : git://w1.fi/srv/git/hostap.git
Signed-off-by: Jouni Malinen <j@w1.fi>

Change-Id: I322b3bad9035c06420e4abb65866f78584a2529b
nl80211: Initial support for vendor commands and events

Print into the debug log the list of vendor commands and events that the
driver supports. In addition, add a generic handler for vendor events.
This can be extended for each vendor/subcmd.

Signed-hostap: Jouni Malinen <j@w1.fi>
Git-commit: 17b79e65a9491a02a3d28411f1432481e8af564b
Git-repo : git://w1.fi/srv/git/hostap.git
Change-Id: Ic649ebc25a30f0a6e3bfaae58fb917217f28f3c6
nl80211: Fix sizeof check in vendor command/event handling

Fix sizeof in a validity comparison of nl80211_vendor_cmd_info size. The
incorrect version happened to work on 64-bit builds due the structure
being eight octets, but this was incorrect and would not used with
32-bit builds.

Signed-hostap: Max Stepanov <Max.Stepanov@intel.com>
Git-commit: 080cc445df897592f493d33224f6c3ec01b4a821
Git-repo : git://w1.fi/srv/git/hostap.git
Change-Id: Iba566678c00ecca3d18f79b6a101660e79258488
CRs-Fixed: 598923
Add a header file defining QCA OUI and vendor extensions

This file is used as a registry of identifier assignments from the
Qualcomm Atheros OUI 00:13:74 for purposes other than MAC address
assignment. One of the first uses will be for nl80211 vendor
commands/events which is reason for the preparation change in
driver_nl80211.c

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Git-commit: 1682c6236017f28b8fdb3b791565c835e988a559
Git-repo : git://w1.fi/srv/git/hostap.git
Change-Id: I25a164a2541a57511c9e737d582b14975fc550b3
CRs-Fixed: 598923
Add SIM identifier to the network profile and cred block

This allows the specific SIM to be identified for authentication
purposes in multi-SIM devices. This SIM number represents the index of
the SIM slot. This SIM number shall be used for the authentication using
the respective SIM for the Wi-Fi connection to the corresponding
network.

CRs-Fixed: 631880
Git-commit: 13f6a07efc3e737d8fcb8f7014cb961ce77e64ee
Git-repo : git://w1.fi/srv/git/hostap.git
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>

Change-Id: I82becee92043e4da5a672353b1fdac6cf0bc531a
TDLS: Do not reenable TDLS link on retransmitted setup frame

A reenable of the TDLS link while the host driver is already processing
the same (due to the retransmitted M2/M3 frames) might result in a
failed TDLS setup handshake due to some host driver's implementation.
Thus, issue enable link only when the peer's TDLS status signifies no
prior link (tpk_success=0).

Git-commit: 179fc5527d503c7e3588c46d7f5c133b4e5d5e3e
Git-repo : git://w1.fi/srv/git/hostap.git
CRs-fixed: 577966
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

Change-Id: Ie3f3375527b2f2c1bd6c75bc3c976388e5356d6e