]> git.ipfire.org Git - thirdparty/hostap.git/log
thirdparty/hostap.git
10 years agoAndroid: P2P: Fix restriction of GO channels on A-band aosp-kk
Dmitry Shmidt [Tue, 8 Oct 2013 20:56:42 +0000 (13:56 -0700)] 
Android: P2P: Fix restriction of GO channels on A-band

Bug: 11105901

Change-Id: Ibe8e85f47e95177700deedccb408f1eec85b8f3d
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoTDLS: Do not start concurrent TDLS setup
Sunil Dutt [Mon, 30 Sep 2013 14:38:41 +0000 (17:38 +0300)] 
TDLS: Do not start concurrent TDLS setup

A new TDLS request shall transmit TPK M1 frame with a unique INonce.
Thus a new explicit request would fail an ongoing TDLS negotiation with
the error "TDLS: FTIE SNonce in TPK M3 does not match with FTIE SNonce
used in TPK M1" if the peer happens to receive two M1 frames before an
M3 frame. Check for the ongoing negotiation with the peer and do not
start a new one if we are already in a setup negotiation with the peer.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoTDLS: Use wpa_tdls_disable_peer_link() in TPK M1 processing
Sunil Dutt [Mon, 30 Sep 2013 14:36:26 +0000 (17:36 +0300)] 
TDLS: Use wpa_tdls_disable_peer_link() in TPK M1 processing

This function is used only with external setup, so this can cleaned up
to use simpler design.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoTDLS: Use wpa_tdls_disable_peer_link() to avoid peer search
Sunil Dutt [Mon, 30 Sep 2013 14:34:13 +0000 (17:34 +0300)] 
TDLS: Use wpa_tdls_disable_peer_link() to avoid peer search

There is no need to go through the peer list when we already have a
pointer to the specific peer entry.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoTDLS: Use helper function for disable link operation
Sunil Dutt [Mon, 30 Sep 2013 14:23:23 +0000 (17:23 +0300)] 
TDLS: Use helper function for disable link operation

This is called from number of locations and it is more efficient to use
a new helper function instead of wpa_tdls_disable_link() that would do
peer address search from the list of peers.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoTDLS: Clean up wpa_tdls_teardown_link() uses
Sunil Dutt [Mon, 30 Sep 2013 14:10:18 +0000 (17:10 +0300)] 
TDLS: Clean up wpa_tdls_teardown_link() uses

Making this function be used only for external setup case simplifies the
implementation and makes core wpa_supplicant calls in ctrl_iface.c and
events.c consistent.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoTDLS: Do not modify RNonce for an TPK M1 frame with same INonce
Sunil Dutt [Sun, 15 Sep 2013 19:09:40 +0000 (12:09 -0700)] 
TDLS: Do not modify RNonce for an TPK M1 frame with same INonce

There is no point in updating the RNonce for every obtained TPK M1 frame
(e.g., retransmission due to timeout) with the same INonce (SNonce in
FTIE). Update RNonce only if a TPK M1 is received with a different
INonce (new TDLS session) to avoid issues with two setup exchanges
getting mixed and exchange failing due to mismatching nonces ("TDLS:
FTIE ANonce in TPK M3 does not match with FTIE ANonce used in TPK M2").

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoTDLS: Disable the created link on a failed TDLS handshake
Sunil Dutt [Sun, 15 Sep 2013 18:51:00 +0000 (11:51 -0700)] 
TDLS: Disable the created link on a failed TDLS handshake

Clear the peer information and disable the created link on a
failed TDLS setup negotiation. This is needed to avoid leaving
TDLS setup pending and to return to the AP path in case anything
goes wrong during the setup attempt.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoFix possible freed-memory use in BSS table updates
Jouni Malinen [Fri, 27 Sep 2013 12:47:09 +0000 (15:47 +0300)] 
Fix possible freed-memory use in BSS table updates

If there are large number of BSSes in the scan results, BSS table update
could have added a BSS entry to the last_scan_res in a case where that
BSS entry got just deleted. This would happen only if there are more
than bss_max_count (by default 200) BSSes and if at least bss_max_count
of those BSSes are known (match a configured network). In such a case,
wpa_bss_add() could end up allocating a new BSS entry and return a
pointer to that entry even if it was the one that ended up getting freed
to keep the BSS table length within the limit. This could result in
freed memory being used and the process crashing (likely with segfault)
when trying to access information from that BSS entry.

Fix the issue by removing the oldest BSS entry before linking the new
entry to the table. This makes sure the newly added entry will never get
picked up as the one to be deleted immediately.

Bug: 10964663

Change-Id: I495dd2503127263746a69c9ef040c9e62fec0bda
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoP2P: Prefer 20 MHz operating channels on 5 GHz band over 2.4 GHz
Hardik Kantilal Patel [Sun, 15 Sep 2013 01:09:48 +0000 (18:09 -0700)] 
P2P: Prefer 20 MHz operating channels on 5 GHz band over 2.4 GHz

When no other user preference is specified, opt to use an operating
channel that allows 5 GHz band to be used rather than 2.4 GHz.
Previously, this was already done in practice for HT40 channels since no
such channel is enabled for P2P on 2.4 GHz. This commit extends this to
apply 5 GHz preference for 20 MHz channels as well.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoAndroid: P2P: Restrict GO channels on A-band
Dmitry Shmidt [Mon, 16 Sep 2013 21:37:53 +0000 (14:37 -0700)] 
Android: P2P: Restrict GO channels on A-band

Bug: 10641114

Change-Id: I621ef6d5e45392d86211bc3936e85b876b96aec4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAndroid: P2P: Restrict GO channels on A-band by locale
Dmitry Shmidt [Thu, 12 Sep 2013 19:41:14 +0000 (12:41 -0700)] 
Android: P2P: Restrict GO channels on A-band by locale

Bug: 10641114

Change-Id: I9bb5e6f816ae84363487d77a8c6ddd1b4ae6ae0f
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAndroid: P2P: Remember country locale
Dmitry Shmidt [Thu, 12 Sep 2013 19:39:30 +0000 (12:39 -0700)] 
Android: P2P: Remember country locale

Bug: 10641114

Change-Id: Iab32a76b277cc8195f47a02fb8e6936ff2529aaa
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAndroid: P2P: Fix frequency choice if multichannel supported
Dmitry Shmidt [Tue, 10 Sep 2013 17:52:57 +0000 (10:52 -0700)] 
Android: P2P: Fix frequency choice if multichannel supported

Bug: 10513949

Change-Id: Id9e5b2560630049a6ca5f74e3785d4a2c2be3124
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAndroid: Clean entire socket directory
Dmitry Shmidt [Mon, 9 Sep 2013 17:26:32 +0000 (10:26 -0700)] 
Android: Clean entire socket directory

Despite interface (and group) related sockets are not used
for control, they are created and may be left.

Bug: 10585306

Change-Id: I7cf49403337afc2db552c094029390c2cbd57c0f
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: These files do not exist in AOSP
Jouni Malinen [Fri, 1 Nov 2013 09:06:24 +0000 (11:06 +0200)] 
AOSP: These files do not exist in AOSP

10 years agoAOSP: wpa_supplicant/android.config differences
Jouni Malinen [Fri, 1 Nov 2013 14:27:32 +0000 (16:27 +0200)] 
AOSP: wpa_supplicant/android.config differences

10 years agoAOSP: Update in the copyright year missing
Jouni Malinen [Fri, 1 Nov 2013 14:25:39 +0000 (16:25 +0200)] 
AOSP: Update in the copyright year missing

This should be reverted. Somehow this change was missed from the
upstream commit e056f93e60d02368455a2c1b80b13c59b9ab0c59 while other
parts were included.

10 years agoAOSP: Missed top level README change
Jouni Malinen [Fri, 1 Nov 2013 14:23:55 +0000 (16:23 +0200)] 
AOSP: Missed top level README change

This was from upstream commit eb32192b72d6a9fa918870c9997e0cc7c9efeb2f
that added CONTRIBUTIONS file (which is also missing from the AOSP
tree).

10 years agoAOSP: Top level Android.mk changes
Jouni Malinen [Fri, 1 Nov 2013 14:20:32 +0000 (16:20 +0200)] 
AOSP: Top level Android.mk changes

These are from number of AOSP commits:

commit 3f2a11702f53c1bd867041b2320f6adc536aee9f
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Wed Nov 7 12:58:02 2012 -0800

    wpa_supplicant: Set Ver 0.8.X as default

    Change-Id: I2d2433464068e863c12c0a06eed269e2a8c0fc46
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
commit 62b90b3f61d96527800b43f3d467e32f06e1e8f1
Author: Ying Wang <wangying@google.com>
Date:   Tue Nov 20 18:04:25 2012 -0800

    Include the subdir Android.mks in fixed order.

    The build fails when the include order is reversed.
    On the other hand, the build system doesn't guarantee the file order
    returned by all-subdir-makefiles.

    Change-Id: I398e536fc8189d0f26ebc0b0342c778d234532ad

etc.

10 years agoAOSP: Android.mk CONFIG_WNM CFLAGS -> L_CFLAGS fix
Jouni Malinen [Fri, 1 Nov 2013 14:17:07 +0000 (16:17 +0200)] 
AOSP: Android.mk CONFIG_WNM CFLAGS -> L_CFLAGS fix

This came in as a part of this AOSP commit:

commit 61d9df3e62aaa0e87ad05452fcb95142159a17b6
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Wed Aug 29 16:22:06 2012 -0700

    wpa_supplicant: Update to 29-Aug-2012 TOT

    commit 6ffdc2f7bd496ace7a46e055f9714e7db4b1f722
    Author: Jouni Malinen <jouni@qca.qualcomm.com>
    Date:   Fri Mar 2 22:31:04 2012 +0200

        WFD: Add preliminary WSD request processing and response

        This commit does not yet address support for different device roles,
        i.e., the same set of subelements are returned regardless of which
        role was indicated in the request.

        Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

    Change-Id: I9d63acce719b982c02e589bb59602382e82988c8
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agohostapd: Allow hostapd_cli to work on Android
Jeff Johnson [Tue, 4 Sep 2012 05:12:17 +0000 (22:12 -0700)] 
hostapd: Allow hostapd_cli to work on Android

Add definitions of the Android specific directories used for control
interface sockets so that hostapd_cli can connect to the Android
hostapd.

Change-Id: Iabcd8d70ef61fae6656066991240d55e65a032e4

10 years agoAOSP: Enable CONFIG_WIFI_DISPLAY=y
Jouni Malinen [Fri, 1 Nov 2013 14:11:10 +0000 (16:11 +0200)] 
AOSP: Enable CONFIG_WIFI_DISPLAY=y

This came as a part of the following AOSP commit:

commit 61d9df3e62aaa0e87ad05452fcb95142159a17b6
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Wed Aug 29 16:22:06 2012 -0700

    wpa_supplicant: Update to 29-Aug-2012 TOT

    commit 6ffdc2f7bd496ace7a46e055f9714e7db4b1f722
    Author: Jouni Malinen <jouni@qca.qualcomm.com>
    Date:   Fri Mar 2 22:31:04 2012 +0200

        WFD: Add preliminary WSD request processing and response

        This commit does not yet address support for different device roles,
        i.e., the same set of subelements are returned regardless of which
        role was indicated in the request.

        Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

    Change-Id: I9d63acce719b982c02e589bb59602382e82988c8
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: Undesired UTF8 encoding difference
Jouni Malinen [Fri, 1 Nov 2013 14:09:13 +0000 (16:09 +0200)] 
AOSP: Undesired UTF8 encoding difference

This came in as a part of the following AOSP commit. I'd assume
this goes away once upstream removes the non-ASCII character.

commit 51b6ea882f234c14cd1fe1332a3840cf61fafcca
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Wed May 8 10:42:09 2013 -0700

    Accumulative patch from commit 6ea1f4135b72199988393f34dd7f5ad8040b7a42

    6ea1f41 Try to set WPA-None key after IBSS-joined event
    66562e9 Use cached driver capabilities instead of new fetch for each operati
    55293aa TDLS: Do not overwrite the reason code in the Tear Down Request
    4aa8186 Add a configration parameter for sched_scan interval
    03565bc Synchronize with wireless-testing.git include/uapi/linux/nl80211.h
    f11b72c TDLS: Move AID=1 workaround into driver_nl80211.c
    7853369 TDLS: Pass peer's AID information to kernel
    55a2df4 HS 2.0: Include HS 2.0 Indication element only for HS 2.0 associatio
    ad0685e edit: Fix history processing on running old command
    9be3714 wpa_cli: Fetch the current BSSID list when starting interactive mode
    69aa334 wpa_cli: Add BSSID tab completion for set bssid_filter
    2156587 wpa_cli: Replace set command help with completion routine
    f1fb042 wpa_cli: Allow space in the set command value
    f5ffc34 wpa_supplicant: Allow global scan frequencies configuration
    abfc3ad Synchronize build config comments for wpa_supplicant
    a01e10d Android: Enable WPS ER and NFC support in the build
    11e5a49 WPS: Do not use void* in arithmetic
    0f105f9 HS 2.0: Move Probe Request Indication IE addition to proper place
    8543ed8 WPA: Print pairwise EAPOL-Key flag as a bool
    7af092a hostapd: Add Key MIC in group EAPOL-Key frames corruption test optio
    b691dcb nl80211: Fix max_remain_on_chan capability reading
    41b1a76 P2P: Clone beacon_int when initializing new group interface
    741ed9f WPS: Remove duplicate networks after WPS

    Change-Id: I9a2a0cb2acf87dfd7548318d2bda5f342b815884
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: bcmdhd P2P_CONCURRENT_SEARCH_DELAY=0
Jouni Malinen [Fri, 1 Nov 2013 14:06:02 +0000 (16:06 +0200)] 
AOSP: bcmdhd P2P_CONCURRENT_SEARCH_DELAY=0

This was hidden within this AOSP commit:

commit d5e4923d04122f81300fa68fb07d64ede28fd44d
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Mon Dec 3 15:08:10 2012 -0800

    Accumulative patch from commit f5f37d3a4fc2df2a24676b4f95afca15ed793cba

    Author: Jouni Malinen <j@w1.fi>
    Date:   Sun Nov 25 22:05:32 2012 +0200

       Fix REAUTHENTICATE command after PMKSA caching

       The current PMKSA cache entry needs to be clear to allow EAPOL
       reauthentication to be started in case this association used PMKSA
       caching.

     - Remove old WPS_OOB NCF
     - WPS: Add preliminary NFC connection handover support for Enrollee
     - WPS: Reenable the networks disabled during wpa_wpas_reassoc
     - P2P: Avoid multi-channel scans when they are not needed
     - P2P: Allow discoverable interval for p2p_find to be configured
     - P2P: Allow all channels with multi-channel concurrency
     - Bonjour changes
     - Remove disassociate
     - HS 2.0 changes
     - Add preliminary support for using SQLite for eap_user database
     - Add SAE support
     - Add disallow_aps parameter to disallow BSSIDs/SSIDs

    Change-Id: I85358a05b39d46b8db49acdad667e771c580b05c
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: Android.mk BOARD_WLAN_DEVICE
Jouni Malinen [Fri, 1 Nov 2013 13:58:48 +0000 (15:58 +0200)] 
AOSP: Android.mk BOARD_WLAN_DEVICE

10 years agoAOSP: keystore include directory difference
Jouni Malinen [Fri, 1 Nov 2013 13:53:52 +0000 (15:53 +0200)] 
AOSP: keystore include directory difference

Upstream supports both the old and the new directory. Could be fine to
remove the old directory from upstream(?) to make these match.

This is related to this AOSP commit:

commit 07311dc4db7c5bbab9ebba7d3f9b9805e6ab7b24
Author: Kenny Root <kroot@google.com>
Date:   Wed Feb 15 15:08:06 2012 -0800

    Moving keystore to system/security

    keystore used to be in frameworks/base/cmds/keystore, but this include
    needs to be changed to support the move to system/security

    Change-Id: I583a193593576c2c3c7489fb8c27a29698e8a4c5

10 years agoAOSP: Merge mismatch in wpa_supplicant/Android.mk
Jouni Malinen [Fri, 1 Nov 2013 13:52:09 +0000 (15:52 +0200)] 
AOSP: Merge mismatch in wpa_supplicant/Android.mk

This came in as a part of this AOSP commit:

commit a54fa5fb807eaeff45464139b5a7759f060cec68
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Tue Jan 15 13:53:35 2013 -0800

    Accumulative patch from commit dc013f1e37df3462085cf01a13f0c432f146ad7a

    Author: Jouni Malinen <jouni@qca.qualcomm.com>
    Date:   Tue Jan 15 12:03:29 2013 +0200
        eapol_test: Remove unnecessary header file inclusion

     - P2P: Send P2P-FIND-STOPPED event in the new continue-search states
     - P2P: Add some more details on Service Query TLV format
     - P2P: Use the same Dialog Token value for every GO Negotiation retry
     - P2P: Publish more connected clients info in Probe Response frames
     - P2P: Fix some memory leaks in p2p_add_device()
     - P2P: Use the same Dialog Token value for every PD retry
     - P2P: Document operating channel selection functions
     - P2P: Always re-select operating channel if not hard coded
     - P2P: Do not allow re-selection of GO channel if forced_freq in use
     - P2P: Set FORCE_FREQ flag as part of p2p_prepare_channel()
     - P2P: Share a single function for GO channel selection
     - P2P: Prefer operating channels where HT40 is possible
     - P2P: Be more careful with wpa_config_update_psk() call
     - P2P: Allow PSK to be used instead of passphrase for persistent GO
     - P2P: Consider age for the P2P scan results
     - Move some P2P offchannel operations to offchannel.c
     - P2P: Add more complete description of p2p_cancel
     - P2P: Allow p2p_cancel to be used to stop p2p_connect-join operation
     - Interworking changes
     - WNM changes
     - WPS changes
     - SAE changes

    Change-Id: I38b847d3460066cc58aecbcf67266bfcff1d344e
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agowpa_supplicant: Fix compilation without BOARD_WPA_SUPPLICANT_DRIVER
Dmitry Shmidt [Mon, 11 Jun 2012 19:51:06 +0000 (12:51 -0700)] 
wpa_supplicant: Fix compilation without BOARD_WPA_SUPPLICANT_DRIVER

Change-Id: I4ee99454838185487065d3acbccf721aecf7f760
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoRestore OpenSSL ENGINE support
Kenny Root [Tue, 20 Mar 2012 20:05:25 +0000 (13:05 -0700)] 
Restore OpenSSL ENGINE support

We now use an OpenSSL ENGINE to support keystore functionality.

Change-Id: Ifa654183a86462e1542c58dd39e20ffe11a8edfa

10 years agoGet rid of LOCAL_MODULE_TAGS := user
Joe Onorato [Tue, 22 May 2012 21:16:30 +0000 (14:16 -0700)] 
Get rid of LOCAL_MODULE_TAGS := user

Change-Id: I6d9ed4e6e1d94cfedcb703eec4adfe227d35b473

10 years agoAdd liblog
Ying Wang [Wed, 10 Apr 2013 04:53:29 +0000 (21:53 -0700)] 
Add liblog

Bug: 8580410
Change-Id: I1d1b468ca828306669a5d6e0797204dec5117971

10 years agoAOSP: Merge mismatch
Jouni Malinen [Fri, 1 Nov 2013 13:44:47 +0000 (15:44 +0200)] 
AOSP: Merge mismatch

This seems like undesired merge mismatch from this AOSP commit and
should be reverted:

commit f86232838cf712377867cb42417c1613ab5dc425
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Wed Feb 20 14:34:59 2013 -0800

    Accumulative patch from commit b618a469c42120e984ab1c85ed6058504d1fca78

      Author: Jouni Malinen <jouni@qca.qualcomm.com>
      Date:   Sat Feb 16 19:54:09 2013 +0200
        Interworking: Select highest priority cred if multiple matches

    Interworking: Select highest priority cred if multiple matches
    GAS server: Fix a regression in GAS server callback
    hostapd: Fix Max SP Length derivation from QoS Info
    nl80211: Configure STA Capabilities and Extended Capabilities
    Synchronize with wireless-testing.git include/uapi/linux/nl80211.h
    WPS: Fix build without CONFIG_WPS_NFC
    WPS: Add support for NFC handover select generation with wpa_supplicant
    WPS: Update NFC connection handover documentation
    WPS: Add support for config token generation with wpa_supplicant
    WPS: Allow password token to be written with nfcpy
    WPS: Use pre-configured NFC password token instead of overriding it
    TDLS: Pass peer's Capability and Ext Capability info during sta_add
    TDLS: Pass peer's HT Capability and QOS information during sta_add
    nl80211: Add debug prints for STA add/set operations
    TDLS: Fix add/set STA operation
    Synchronize with wireless-testing.git include/uapi/linux/nl80211.h
    WPS: Allow Device Password to be changed from M1 to M2
    WPS: Fix wps_reg nfc-pw option
    TDLS: Tear down peers when disconnecting from the AP
    P2P: Do not use old scan result data for peer discovery
    Use more accurate timestamps for scan results
    P2P: Postpone P2P-DEVICE-FOUND if config_methods not known
    P2P: Do not allow peer update to clear config_methods
    WPS: Report NFC connection handover completion differently
    P2P: Avoid concurrent scans during all steps of group formation
    P2P: Cancel group formation timeout on group removal (on client)
    WPS: Change listen time to match nfcpy default (250 ms)
    WPS: Report only the carrier record from NFC to wpa_supplicant
    WPS: Fetch only the carrier record from wpa_supplicant for NFC
    WPS: Update nfcpy script to support AP mode NFC connection handover
    WPS: Add command for fetching carrier record for NFC handover
    WPS: Clean up debug prints with nfcpy
    WPS: Remove 0.5 sec extra wait from NFC handover with nfcpy
    WPS: Use alternating poll/listen for NFC peer discovery with nfcpy
    WPS: Configure logging to show nfcpy log message
    WPS: Add an example python script for NFC operations with hostapd
    hostapd: Do not change HT40 capability due to OBSS scan
    dbus: Add missing signal description for WPS (7)
    EAP peer: Add Session-Id derivation to more EAP methods
    EAP peer: Add Session-Id derivation
    EAP-IKEV2 server: Fix invalid memory freeing operation
    eap_proxy: Add a dummy implementation for compilation testing
    eap_proxy: Add mechanism for allowing EAP methods to be offloaded
    Android: Allow setgroups to be overridden from build configuration
    P2P: Send p2p_stop_find event on failure to start pending p2p_find
    P2P: Fix GO Probe Response IEs when Wi-Fi Display is enabled
    Capability matching for 60 GHz band
    nl80211: Add ctrl_iface message for AP mode connection rejection
    P2P: Allow local configuration to use 5 GHz band 40 MHz channels
    Fix BSS RANGE command for no exact id match cases

    Change-Id: Iac9284bba31db40911aecc3adf2843c9b1576db1
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: Merge mismatch
Jouni Malinen [Fri, 1 Nov 2013 13:41:54 +0000 (15:41 +0200)] 
AOSP: Merge mismatch

This seems like undesired merge mismatch from this AOSP commit and
should be reverted:

commit a54fa5fb807eaeff45464139b5a7759f060cec68
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Tue Jan 15 13:53:35 2013 -0800

    Accumulative patch from commit dc013f1e37df3462085cf01a13f0c432f146ad7a

    Author: Jouni Malinen <jouni@qca.qualcomm.com>
    Date:   Tue Jan 15 12:03:29 2013 +0200
        eapol_test: Remove unnecessary header file inclusion

     - P2P: Send P2P-FIND-STOPPED event in the new continue-search states
     - P2P: Add some more details on Service Query TLV format
     - P2P: Use the same Dialog Token value for every GO Negotiation retry
     - P2P: Publish more connected clients info in Probe Response frames
     - P2P: Fix some memory leaks in p2p_add_device()
     - P2P: Use the same Dialog Token value for every PD retry
     - P2P: Document operating channel selection functions
     - P2P: Always re-select operating channel if not hard coded
     - P2P: Do not allow re-selection of GO channel if forced_freq in use
     - P2P: Set FORCE_FREQ flag as part of p2p_prepare_channel()
     - P2P: Share a single function for GO channel selection
     - P2P: Prefer operating channels where HT40 is possible
     - P2P: Be more careful with wpa_config_update_psk() call
     - P2P: Allow PSK to be used instead of passphrase for persistent GO
     - P2P: Consider age for the P2P scan results
     - Move some P2P offchannel operations to offchannel.c
     - P2P: Add more complete description of p2p_cancel
     - P2P: Allow p2p_cancel to be used to stop p2p_connect-join operation
     - Interworking changes
     - WNM changes
     - WPS changes
     - SAE changes

    Change-Id: I38b847d3460066cc58aecbcf67266bfcff1d344e
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: wpa_supplicant/Android.mk changes
Jouni Malinen [Fri, 1 Nov 2013 13:39:10 +0000 (15:39 +0200)] 
AOSP: wpa_supplicant/Android.mk changes

These came as a part of this AOSP commit (but do not match upstream):

commit d5e4923d04122f81300fa68fb07d64ede28fd44d
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Mon Dec 3 15:08:10 2012 -0800

    Accumulative patch from commit f5f37d3a4fc2df2a24676b4f95afca15ed793cba

    Author: Jouni Malinen <j@w1.fi>
    Date:   Sun Nov 25 22:05:32 2012 +0200

       Fix REAUTHENTICATE command after PMKSA caching

       The current PMKSA cache entry needs to be clear to allow EAPOL
       reauthentication to be started in case this association used PMKSA
       caching.

     - Remove old WPS_OOB NCF
     - WPS: Add preliminary NFC connection handover support for Enrollee
     - WPS: Reenable the networks disabled during wpa_wpas_reassoc
     - P2P: Avoid multi-channel scans when they are not needed
     - P2P: Allow discoverable interval for p2p_find to be configured
     - P2P: Allow all channels with multi-channel concurrency
     - Bonjour changes
     - Remove disassociate
     - HS 2.0 changes
     - Add preliminary support for using SQLite for eap_user database
     - Add SAE support
     - Add disallow_aps parameter to disallow BSSIDs/SSIDs

    Change-Id: I85358a05b39d46b8db49acdad667e771c580b05c
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoFix join for p2p_connect
Irfan Sheriff [Fri, 7 Sep 2012 01:30:39 +0000 (18:30 -0700)] 
Fix join for p2p_connect

wps_pbc with interface command stripped out ends up as a null character.
Supplicant tries to interpret that as a bssid. Fix it to ignore null
character as empty bssid

Change-Id: Ic91d6657efaf03fbe5c4a03e9e630b4b3ff5dec4

10 years agoAOSP: Remove one of the p2p redirs
Jouni Malinen [Fri, 1 Nov 2013 13:33:49 +0000 (15:33 +0200)] 
AOSP: Remove one of the p2p redirs

This was hidden within this AOSP commit:

commit b7b4d0ec07161a6d76c40ba7ef1306e82fbb7e15
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Mon Aug 26 12:09:05 2013 -0700

    Cumulative patch from commit 853b49a030c00fd6b2dde14e183ca2bf108eaa16

    853b49a tests: Increase test_ap_wps_init connection timeout
    28de68a P2P: Update peer operating channel from GO Negotiation Confirm
    6701fdc P2P: Use the first pref_chan entry as operating channel preference
    99d7c76 P2P: Add more debug info on operating channel selection
    8d660e0 P2P: Add GO negotiation results into the P2P-GO-NEG-SUCCESS event
    2c6f8cf Replace perror() with wpa_printf(strerror) in ctrl_iface calls
    e743db4 IBSS RSN: Add IBSS-RSN-COMPLETED event message
    4c55901 P2P: Add state info to global STATUS command
    ae8c27f Add STATUS command to global control interface
    42868f1 Add SAVE_CONFIG command to global control interface
    1b9b31c Add SET command for global control interface
    0185007 hostapd: Add survey dump support
    245e026 hostapd: Split up channel checking into helpers
    ba873bd wired: Wait for the link to become active before sending packets
    d393de1 P2P: Validate the freq in p2p_group_add
    973622c wpa_supplicant: Fix AP mode frequency initialization
    d99ca89 P2P: Skip non-P2P interface in p2p_group_remove *
    239abaf WPS: Set currently used RF band in RF Bands attribute
    bf83eab nl80211: Start P2P Device when rfkill is unblocked
    60b13c2 nl80211: Do not change type to station on P2P interfaces
    e0591c3 wpa_supplicant: Reduce wait time for control interfaces
    5046eb4 P2P: Allow separate interface GO to disconnect low-ack STAs
    5bcd5c5 FT RRB: Clear pad field to avoid sending out uninitialized data
    b378c41 nl80211: Fix deinit path to unregister nl_mgmt socket
    a235aca Fix DETACH command debug prints to avoid use of freed memory
    8d6e035 Make global UNIX socket non-blocking for ctrl_iface
    86bd141 Change WEP network selection to reject WPA/WPA2 APs
    2e145e9 WPS: Fix failure path to allow WSC_NACK and EAP-Failure to be exchan
    3351a38 WPS: Add control interface command for fetching latest status
    e96872a WPS: Track peer MAC address from the last operations
    ae23935 WPS: Track PBC status
    61b6520 WPS: Track result of the latest WPS operation
    50396e2 WPS: Add PBC mode activated/disabled events
    961750c WPS: Share a common function for error strings
    30158a0 nl80211: Update the assoc_freq during connect
    83e7bb0 nl80211: Add more debug prints for DEL_STATION commands

    Bug: 9056601

    Change-Id: I8bc671eb13f4c2c388a4c15cf1ba968c24c9656a
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: Different encoding of non-ASCII characters in a comment
Jouni Malinen [Fri, 1 Nov 2013 13:31:03 +0000 (15:31 +0200)] 
AOSP: Different encoding of non-ASCII characters in a comment

This looks like a bogus change - will hopefully disappear once
upstream converts these to ASCII.

10 years agoP2P: Add commands for p2p redirection
Dmitry Shmidt [Fri, 16 Aug 2013 22:29:47 +0000 (15:29 -0700)] 
P2P: Add commands for p2p redirection

Bug: 9056601

Change-Id: I6d78433df656c24af74a6825624c68231a4bf87d
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoUpdate AP IE regardless WPA_DRIVER_FLAGS_BSS_SELECTION flag
Dmitry Shmidt [Fri, 15 Feb 2013 00:44:44 +0000 (16:44 -0800)] 
Update AP IE regardless WPA_DRIVER_FLAGS_BSS_SELECTION flag

Change-Id: Ia2b0aea81e250cfd989861ed37551ca8c41f7a66
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: Set ap_scan to default in case of disassociation
Jouni Malinen [Fri, 1 Nov 2013 11:04:38 +0000 (13:04 +0200)] 
AOSP: Set ap_scan to default in case of disassociation

A rebased version of this AOSP commit:

commit 43007fd3a75a07189a11510e131216284b48e098
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Mon Apr 11 15:58:40 2011 -0700

    Set ap_scan to default in case of disassociation

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: Add SSID to EVENT-STATE-CHANGE
Jouni Malinen [Fri, 1 Nov 2013 11:03:04 +0000 (13:03 +0200)] 
AOSP: Add SSID to EVENT-STATE-CHANGE

This is a part of this AOSP commit:

commit f20a4432808cee548326c4b35c83071ca576a239
Author: Irfan Sheriff <isheriff@google.com>
Date:   Mon Apr 16 16:48:34 2012 -0700

    Add SSID in supplicant change event

    Change-Id: I67224e6765afad51b4b258b0df7d11d7ed3b9927

10 years agoAOSP: Change P2P_MAX_CLIENT_IDLE 10 --> 20
Jouni Malinen [Fri, 1 Nov 2013 11:01:27 +0000 (13:01 +0200)] 
AOSP: Change P2P_MAX_CLIENT_IDLE 10 --> 20

This came in as a part of this AOSP commit:

commit 98f9e76624da6bb96edc1982c423e4a119c5170a
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Wed May 30 11:18:46 2012 -0700

    wpa_supplicant: Update to Version 0.8.27 from BRCM

    - Fix crash during TRUE pbc overlap
    - Fix p2p_stop_find event
    - Avoid race condition in GO-NEG process if both peers enter
      p2p_connect at the same time
    - Retry assoc immediately on ASSOC-REJECT. Previously assoc was
      retried on authentication timeout (which occurs after 10secs).
      Now on assoc reject, we cancel the auth timer and then initiate
      a assoc scan.

    BUG: 65437056427094

    Change-Id: I4489fb14b6cead069f0d14fcbb9e2224f790d77b
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: Restore p2p_group_formation pointer on completion
Jouni Malinen [Fri, 1 Nov 2013 10:57:57 +0000 (12:57 +0200)] 
AOSP: Restore p2p_group_formation pointer on completion

This is a part of the following AOSP commit:

commit 4b86ea55603eded752b5773179884a35e74e1a89
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Tue Sep 4 11:06:50 2012 -0700

    wpa_supplicant: Update to BRCM version 0.8.0-38

    - Restore p2p_group_formation pointer till the 4-way handshake
      completes for the p2p client

    Change-Id: I976659ae5dac4cf01ecdd7995ff9abb6bf914bc1
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: Add WFD dev info in device found event
Jouni Malinen [Fri, 1 Nov 2013 10:55:55 +0000 (12:55 +0200)] 
AOSP: Add WFD dev info in device found event

This is a rebased version of this AOSP commit:

commit 8367dc909f536f600c7474582fe0a96bef7c78fc
Author: Irfan Sheriff <isheriff@google.com>
Date:   Sun Sep 9 17:08:19 2012 -0700

    Add WFD dev info in device found event

    Change-Id: If25804d41e7ea1d028a30c180290d8de547f43e8

10 years agoIncrease channel delay to 100ms
Irfan Sheriff [Wed, 17 Oct 2012 04:40:46 +0000 (21:40 -0700)] 
Increase channel delay to 100ms

There is an inherent flaw in the p2p protocol design where an ACK loss right
before channel switch leads to peers being out of sync.

A work around of 50ms was added persistent case, but it turns out in heavy lossy
conditions that is not enough. Increase it to 100ms.

Experimental evaluation showed 100ms improves the reliability of p2p persistence
reinvocation.

Bug: 7359500
Change-Id: I73ab1b64e32b87101e95b0e487c90818c2c0aaf3

10 years agoAOSP: Leftover edits from old commit
Jouni Malinen [Fri, 1 Nov 2013 10:52:17 +0000 (12:52 +0200)] 
AOSP: Leftover edits from old commit

This came in as a part of the following AOSP commit. The actual
change was since then removed, but the remaining code was not
restored to match the upstream version. This should be reverted.

commit 687922c7347bdc3b4f8c921efe1d1388cb3baac0
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Mon Mar 26 14:02:32 2012 -0700

    Update to Version 0.8.24 from BRCM

    - Add 'conc_priority' command
    - Fix handling a single channel concurrency case: If conc_priority
      is not set, advertise the frequency conflict to the framework and
      disable the new connection attempted
    - When P2P Interface gets removed due to single channel frequency
      conflict, show GROUP_REMOVE reason=FREQ_CONFLICT
    - Fix sched scan processing

    Change-Id: Ie6fe105cebd379a0a9c49ace62d2e48e71571107
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoFix reporting hidden APs during scan
Dmitry Shmidt [Mon, 22 Aug 2011 22:04:04 +0000 (15:04 -0700)] 
Fix reporting hidden APs during scan

Change-Id: I2f3274c6f89ac0100331f4987c40e23f36577817
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: Fix scan notification in case of canceling scan
Jouni Malinen [Fri, 1 Nov 2013 10:47:53 +0000 (12:47 +0200)] 
AOSP: Fix scan notification in case of canceling scan

This is rebased version of this AOSP commit:

commit 20df807cb700c516ff346732f1bc8f914d0d26d8
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Fri Apr 8 15:35:17 2011 -0700

    Fix scan notification in case of canceling scan

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAllow immediate scan request even if another scan was scheduled later
Dmitry Shmidt [Mon, 14 Nov 2011 23:53:31 +0000 (15:53 -0800)] 
Allow immediate scan request even if another scan was scheduled later

Change-Id: I4f5c021da9ac66464ad422d65c5855fd72f39b41
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: Skip wpa_supplicant_scan if wpa_s->scanning
Jouni Malinen [Fri, 1 Nov 2013 10:44:52 +0000 (12:44 +0200)] 
AOSP: Skip wpa_supplicant_scan if wpa_s->scanning

This came in as a part of this commit:

commit 5887a9d552f3d9d612011daba073e076daab5b2a
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Fri Sep 14 10:47:43 2012 -0700

    wpa_supplicant: Skip unnecessary scan attempts

    Change-Id: Ieea8843c0fcb063dbb1df56e5cdf3fbdd0590cd4
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: P2P timeout changes for PD
Jouni Malinen [Fri, 1 Nov 2013 10:42:41 +0000 (12:42 +0200)] 
AOSP: P2P timeout changes for PD

These came in as a part of this AOSP commit:

commit 1a2ce111ade9563d99ed7bb8156d6148ffd6c3a3
Author: Irfan Sheriff <isheriff@google.com>
Date:   Tue Oct 30 22:22:52 2012 -0700

    Increase timeouts for p2p

    Dongles can be slow to respond and a quick turn around time on packets does
    Allow for upto 350ms on retry attempts for provision discovery, negotiation

    This will catch slow responses within the first attempt and prevent any kind
    with sequence number handling

    Bug: 7445415
    Change-Id: I88a849d400b10f42ac298bad6d01f49803fcc8ba

10 years agoAOSP: Restore ' (auth)' into WPA-EVENT-CONNECTED
Jouni Malinen [Fri, 1 Nov 2013 10:40:28 +0000 (12:40 +0200)] 
AOSP: Restore ' (auth)' into WPA-EVENT-CONNECTED

This was hidden in this AOSP commit (not in upstream..):

commit f86232838cf712377867cb42417c1613ab5dc425
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Wed Feb 20 14:34:59 2013 -0800

    Accumulative patch from commit b618a469c42120e984ab1c85ed6058504d1fca78

      Author: Jouni Malinen <jouni@qca.qualcomm.com>
      Date:   Sat Feb 16 19:54:09 2013 +0200
        Interworking: Select highest priority cred if multiple matches

    Interworking: Select highest priority cred if multiple matches
    GAS server: Fix a regression in GAS server callback
    hostapd: Fix Max SP Length derivation from QoS Info
    nl80211: Configure STA Capabilities and Extended Capabilities
    Synchronize with wireless-testing.git include/uapi/linux/nl80211.h
    WPS: Fix build without CONFIG_WPS_NFC
    WPS: Add support for NFC handover select generation with wpa_supplicant
    WPS: Update NFC connection handover documentation
    WPS: Add support for config token generation with wpa_supplicant
    WPS: Allow password token to be written with nfcpy
    WPS: Use pre-configured NFC password token instead of overriding it
    TDLS: Pass peer's Capability and Ext Capability info during sta_add
    TDLS: Pass peer's HT Capability and QOS information during sta_add
    nl80211: Add debug prints for STA add/set operations
    TDLS: Fix add/set STA operation
    Synchronize with wireless-testing.git include/uapi/linux/nl80211.h
    WPS: Allow Device Password to be changed from M1 to M2
    WPS: Fix wps_reg nfc-pw option
    TDLS: Tear down peers when disconnecting from the AP
    P2P: Do not use old scan result data for peer discovery
    Use more accurate timestamps for scan results
    P2P: Postpone P2P-DEVICE-FOUND if config_methods not known
    P2P: Do not allow peer update to clear config_methods
    WPS: Report NFC connection handover completion differently
    P2P: Avoid concurrent scans during all steps of group formation
    P2P: Cancel group formation timeout on group removal (on client)
    WPS: Change listen time to match nfcpy default (250 ms)
    WPS: Report only the carrier record from NFC to wpa_supplicant
    WPS: Fetch only the carrier record from wpa_supplicant for NFC
    WPS: Update nfcpy script to support AP mode NFC connection handover
    WPS: Add command for fetching carrier record for NFC handover
    WPS: Clean up debug prints with nfcpy
    WPS: Remove 0.5 sec extra wait from NFC handover with nfcpy
    WPS: Use alternating poll/listen for NFC peer discovery with nfcpy
    WPS: Configure logging to show nfcpy log message
    WPS: Add an example python script for NFC operations with hostapd
    hostapd: Do not change HT40 capability due to OBSS scan
    dbus: Add missing signal description for WPS (7)
    EAP peer: Add Session-Id derivation to more EAP methods
    EAP peer: Add Session-Id derivation
    EAP-IKEV2 server: Fix invalid memory freeing operation
    eap_proxy: Add a dummy implementation for compilation testing
    eap_proxy: Add mechanism for allowing EAP methods to be offloaded
    Android: Allow setgroups to be overridden from build configuration
    P2P: Send p2p_stop_find event on failure to start pending p2p_find
    P2P: Fix GO Probe Response IEs when Wi-Fi Display is enabled
    Capability matching for 60 GHz band
    nl80211: Add ctrl_iface message for AP mode connection rejection
    P2P: Allow local configuration to use 5 GHz band 40 MHz channels
    Fix BSS RANGE command for no exact id match cases

    Change-Id: Iac9284bba31db40911aecc3adf2843c9b1576db1
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: nl80211 modification for _shared_freq
Jouni Malinen [Fri, 1 Nov 2013 10:38:38 +0000 (12:38 +0200)] 
AOSP: nl80211 modification for _shared_freq

This came in as a part of this AOSP commit:

commit 1f69aa52ea2e0a73ac502565df8c666ee49cab6a
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Tue Jan 24 16:10:04 2012 -0800

    Update to new version 0.8.16 from BRCM

    Sync with main tree commit b8349523e460493fa0b4de36c689595109e45e91
    Author: Neeraj Kumar Garg <neerajkg@broadcom.com>
    Date:   Tue Dec 27 23:21:45 2011 +0200
        P2P: Reject p2p_group_add if forced frequency is not acceptable

    Change-Id: Icb4541a371b05c270e80440d7a7fdea7f33ff61e
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: nl80211: device_ap_sme/use_monitor changes
Jouni Malinen [Fri, 1 Nov 2013 10:36:37 +0000 (12:36 +0200)] 
AOSP: nl80211: device_ap_sme/use_monitor changes

These came as part of this AOSP commit:

commit b638fe75d3cb9d21c67386173f10afe65053cc4d
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Tue Mar 20 12:51:25 2012 -0700

    nl80211: Use native cfg80211 sta events

    Change-Id: Id59cc4af50dbccd283db2ec3e7b0b6f8c2146e68
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: nl80211 use_multi_chan_concurrent=1 parameter
Jouni Malinen [Fri, 1 Nov 2013 10:33:56 +0000 (12:33 +0200)] 
AOSP: nl80211 use_multi_chan_concurrent=1 parameter

This came as part of this AOSP commit:

commit 1f69aa52ea2e0a73ac502565df8c666ee49cab6a
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Tue Jan 24 16:10:04 2012 -0800

    Update to new version 0.8.16 from BRCM

    Sync with main tree commit b8349523e460493fa0b4de36c689595109e45e91
    Author: Neeraj Kumar Garg <neerajkg@broadcom.com>
    Date:   Tue Dec 27 23:21:45 2011 +0200
        P2P: Reject p2p_group_add if forced frequency is not acceptable

    Change-Id: Icb4541a371b05c270e80440d7a7fdea7f33ff61e
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: Customized STA reconnection behavior
Jouni Malinen [Fri, 1 Nov 2013 10:31:26 +0000 (12:31 +0200)] 
AOSP: Customized STA reconnection behavior

This is rebased version of this AOSP commit:

commit 7db4ef75f0190d98dbc84f8968ede3ac0ae29571
Author: Irfan Sheriff <isheriff@google.com>
Date:   Mon Jun 18 09:39:07 2012 -0700

    Restore STA reconnection behavior

    Have the customized retry behavior only for P2P & do group failure indicatio
    beyond 5 retries

    Bug: 6674338
    Change-Id: I58cba356ebdb7fc4eaa9bedfa417b7d5d35bb306

10 years agoAOSP: Some SD changes
Jouni Malinen [Fri, 1 Nov 2013 10:28:09 +0000 (12:28 +0200)] 
AOSP: Some SD changes

These came hidden in the following AOSP commit. The changes are not from
upstream.

commit 04949598a23f501be6eec21697465fd46a28840a
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Thu Jul 19 12:16:46 2012 -0700

    wpa_supplicant: Update to 07-Jul-2012 TOT

    commit a5ed45586c63ffd8f9d2b44e27c251d7bacbeaf4
    Author: Jouni Malinen <j@w1.fi>
    Date:   Sat Jul 7 13:01:45 2012 +0300

        WPS SSDP: Fix socket leaks on error paths

    Change-Id: I0864aac7fc88fa2a60f5cca7d524b94363410c85
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: Some P2P connection-in-progress changes
Jouni Malinen [Fri, 1 Nov 2013 10:21:43 +0000 (12:21 +0200)] 
AOSP: Some P2P connection-in-progress changes

The p2p_search_pending() function is not used anywhere. That part should
be reverted.

These came in as part of this AOSP commit:

commit 2fb777c379ad560c309c54b96c2c13291da23f54
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Wed May 2 12:29:53 2012 -0700

    wpa_supplicant: Update to Version 0.8.26 from BRCM

    - Add interface command
    - Improve scan handling during P2P

    BUG: b/6324527, b/6427094

    Change-Id: I4425f44d2a15de0725ba4a1b42cc56e10954b314
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: Unused p2p_search_in_progress()
Jouni Malinen [Fri, 1 Nov 2013 10:20:31 +0000 (12:20 +0200)] 
AOSP: Unused p2p_search_in_progress()

This came as part of the following AOSP commit, but the function is
not used anywhere. This should be reverted.

commit 1f69aa52ea2e0a73ac502565df8c666ee49cab6a
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Tue Jan 24 16:10:04 2012 -0800

    Update to new version 0.8.16 from BRCM

    Sync with main tree commit b8349523e460493fa0b4de36c689595109e45e91
    Author: Neeraj Kumar Garg <neerajkg@broadcom.com>
    Date:   Tue Dec 27 23:21:45 2011 +0200
        P2P: Reject p2p_group_add if forced frequency is not acceptable

    Change-Id: Icb4541a371b05c270e80440d7a7fdea7f33ff61e
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: P2P GO Neg oper_freq update from GO Neg Confirm
Jouni Malinen [Fri, 1 Nov 2013 10:13:58 +0000 (12:13 +0200)] 
AOSP: P2P GO Neg oper_freq update from GO Neg Confirm

10 years agoAOSP: Unidentified hostapd/Android.mk change
Jouni Malinen [Fri, 1 Nov 2013 10:11:14 +0000 (12:11 +0200)] 
AOSP: Unidentified hostapd/Android.mk change

This came as part of the following AOSP commit, but was not in upstream
at the time:

commit 391c59f0632df8db1c325da1d31d479b2eedce45
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Tue Sep 3 12:16:28 2013 -0700

    Cumulative patch from commit b2b688d18d40cd667d0faa149b4a7172166b3bd4

    b2b688d P2P: Fix crash when failed to create GO interface
    6197169 WPS NFC: Fix build without CONFIG_AP=y
    e1ae5d7 SAE: Fix build without CONFIG_AP=y
    813e7b3 P2P: Remove group from timeout on PSK failure
    5bf9a6c P2P: Add event messages for possible PSK failures on P2P groups
    eac8dab P2P: Document per-client keys and p2p_remove_client
    43c693c P2P: Do not store duplicate PSK entries for the same device
    f2c5660 P2P: Add a command for removing a client from all groups
    01a57fe P2P: Maintain list of per-client PSKs for persistent groups
    759fd76 P2P: Select PSK based on Device Address instead of Interface Address
    94ddef3 P2P: Make peer's P2P Device Address available to authenticator
    52177fb P2P: Store P2P Device Address in per-device PSK records
    05766ed P2P: Allow per-device PSK to be assigned
    698e921 wpa_cli: Add tab completion for p2p_set field values
    0b5fb86 P2P: Stop listen state when listen-only duration is over
    02a3e5c wpa_cli: Allow first DISCONNECTED event to be reported
    cdf8bfa Disallow WEP configuration in WPA network
    731ef43 D-Bus: Fix per-iface object unregistration on not existing objects
    447969e D-Bus: Do not send network notification for all P2P groups
    eb32460 Fix switching from EAP-SIM to EAP-AKA/AKA'
    f2b3f4d P2P: Allow P2P functionality to be disabled per interface
    50f4f2a hostapd: Add Automatic Channel Selection (ACS) support
    43ee470 P2P: Immediate group removal in GC in case of deauthentication
    fcf2052 Fix MNC length for Swisscom SIM cards

    Bug: 1060622810513949

    Change-Id: I63ba0e2ab4fa76e6afa7a34be42e8e847e1511b0
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: Unidentified hostapd/Android.mk change
Jouni Malinen [Fri, 1 Nov 2013 10:09:10 +0000 (12:09 +0200)] 
AOSP: Unidentified hostapd/Android.mk change

This was in the following AOSP commit, but the outcome differs from the
upstream repository of that time.

commit 61d9df3e62aaa0e87ad05452fcb95142159a17b6
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Wed Aug 29 16:22:06 2012 -0700

    wpa_supplicant: Update to 29-Aug-2012 TOT

    commit 6ffdc2f7bd496ace7a46e055f9714e7db4b1f722
    Author: Jouni Malinen <jouni@qca.qualcomm.com>
    Date:   Fri Mar 2 22:31:04 2012 +0200

        WFD: Add preliminary WSD request processing and response

        This commit does not yet address support for different device roles,
        i.e., the same set of subelements are returned regardless of which
        role was indicated in the request.

        Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

    Change-Id: I9d63acce719b982c02e589bb59602382e82988c8
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoRemove obsolete keystore path
Kenny Root [Wed, 26 Jun 2013 21:57:31 +0000 (14:57 -0700)] 
Remove obsolete keystore path

It's not possible to get a raw private key from keystore anymore, so
this would fail every time anyway. Remove it so it doesn't confuse
anyone that looks at this code.

Change-Id: I021fc1707b16474d8698c85055a6fcc4095cd215

10 years agoUse keystore ENGINE for private key operations
Kenny Root [Wed, 21 Mar 2012 00:00:47 +0000 (17:00 -0700)] 
Use keystore ENGINE for private key operations

The new keystore ENGINE is usable to perform private key operations when
we can't get the actual private key data. This is the case when hardware
crypto is enabled: the private key never leaves the hardware.

Subsequently, we need to be able to talk to OpenSSL ENGINEs that aren't
PKCS#11 or OpenSC. This just changes a few #define variables to allow us
to talk to our keystore engine without having one of those enabled and
without using a PIN.

Change-Id: Iabab5077c3d167a1e13bc8ef8745dc59ad4d62f7

10 years agoAOSP: nl80211 use_monitor hack
Jouni Malinen [Fri, 1 Nov 2013 09:58:52 +0000 (11:58 +0200)] 
AOSP: nl80211 use_monitor hack

This was somehow hidden in this AOSP commit (it was not from the
upstream repository..):

commit 04949598a23f501be6eec21697465fd46a28840a
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Thu Jul 19 12:16:46 2012 -0700

    wpa_supplicant: Update to 07-Jul-2012 TOT

    commit a5ed45586c63ffd8f9d2b44e27c251d7bacbeaf4
    Author: Jouni Malinen <j@w1.fi>
    Date:   Sat Jul 7 13:01:45 2012 +0300

        WPS SSDP: Fix socket leaks on error paths

    Change-Id: I0864aac7fc88fa2a60f5cca7d524b94363410c85
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: P2P SD changes
Jouni Malinen [Fri, 1 Nov 2013 09:55:58 +0000 (11:55 +0200)] 
AOSP: P2P SD changes

This is rebased version (with couple of changes removed) of this AOSP
commit:

From f44b9c4a18d17fbd39901f76a014c32006570fb8 Mon Sep 17 00:00:00 2001
From: Irfan Sheriff <isheriff@google.com>
Date: Wed, 13 Jun 2012 11:09:23 -0700
Subject: [PATCH] Fix p2p service discovery

- Fix listen timing to improve SD reliability
- Fix SD packet scheduling

Bug: 6629112
Change-Id: I01365279439116256372d019bdbfd4b2113bf2ce

10 years agoAOSP: wps_registrar.c PBC address hack of some sort
Jouni Malinen [Fri, 1 Nov 2013 09:48:13 +0000 (11:48 +0200)] 
AOSP: wps_registrar.c PBC address hack of some sort

This is a part from this AOSP commit:

commit 98f9e76624da6bb96edc1982c423e4a119c5170a
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Wed May 30 11:18:46 2012 -0700

    wpa_supplicant: Update to Version 0.8.27 from BRCM

    - Fix crash during TRUE pbc overlap
    - Fix p2p_stop_find event
    - Avoid race condition in GO-NEG process if both peers enter
      p2p_connect at the same time
    - Retry assoc immediately on ASSOC-REJECT. Previously assoc was
      retried on authentication timeout (which occurs after 10secs).
      Now on assoc reject, we cancel the auth timer and then initiate
      a assoc scan.

    BUG: 65437056427094

    Change-Id: I4489fb14b6cead069f0d14fcbb9e2224f790d77b
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agowpa_supplicant_8: use correct header file.
Nick Kralevich [Thu, 28 Feb 2013 21:55:41 +0000 (13:55 -0800)] 
wpa_supplicant_8: use correct header file.

Change-Id: I168ac70cc03d0dd31af77906d71b8b1f77752501

10 years agoAOSP: driver_nl80211.c private library
Jouni Malinen [Fri, 1 Nov 2013 09:45:23 +0000 (11:45 +0200)] 
AOSP: driver_nl80211.c private library

10 years agoSwitch keystore to binder
Kenny Root [Tue, 13 Nov 2012 00:33:36 +0000 (16:33 -0800)] 
Switch keystore to binder

Change-Id: Idfcff5f2799863075160cc6c2565f2fe774c2552

10 years agoUse SSL_OP_NO_TLSv1_1 SSL_OP_NO_TLSv1_2 SSL_OP_NO_TICKET for better wpa_supplicant_8...
Brian Carlstrom [Thu, 26 Jul 2012 06:11:44 +0000 (23:11 -0700)] 
Use SSL_OP_NO_TLSv1_1 SSL_OP_NO_TLSv1_2 SSL_OP_NO_TICKET for better wpa_supplicant_8 interoperability

Bug: https://bugs.launchpad.net/ubuntu/+source/wpasupplicant/+bug/969343/comments/72
Bug: http://w1.fi/bugz/show_bug.cgi?id=447#c7
Bug: http://code.google.com/p/android/issues/detail?id=34212
Bug: 6883259
Change-Id: Ib53326cc8cd40e800454b7b92586c052bc910ba8

10 years agoAOSP: Skip ieee802_1x_finished disconnect on auth failure
Jouni Malinen [Fri, 1 Nov 2013 09:34:57 +0000 (11:34 +0200)] 
AOSP: Skip ieee802_1x_finished disconnect on auth failure

This is part of the following AOSP commit:

commit ad266fb3da6083126e7619e525153839b918aa44
Author: Dmitry Shmidt <dimitrysh@google.com>
Date:   Fri Aug 24 17:03:35 2012 -0700

    wpa_supplicant: Update to BRCM version 0.8.0-37

    - Allow AP_SME support
    - Do not send disassoc after EAP failure since AP_SME is enabled
      and del_station will be called
    - Allow group idle timeout to run during WPS disconnect

    Change-Id: I7e9e15b9c44804196bc98c01d51a71e24412b91d
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
10 years agoAOSP: driver_cmd
Jouni Malinen [Fri, 1 Nov 2013 09:30:24 +0000 (11:30 +0200)] 
AOSP: driver_cmd

10 years agoAOSP: P2P frequency conflict
Jouni Malinen [Fri, 1 Nov 2013 09:21:28 +0000 (11:21 +0200)] 
AOSP: P2P frequency conflict

10 years agoRevert "Android: Add PMF support to hostapd build"
Jouni Malinen [Fri, 1 Nov 2013 09:17:46 +0000 (11:17 +0200)] 
Revert "Android: Add PMF support to hostapd build"

This reverts commit 962b8b36e67d8cfe20528d37e4bb2b366aaf24f0.

Looks like this was not pulled into AOSP.

10 years agoAOSP: gitignore
Jouni Malinen [Fri, 1 Nov 2013 09:15:25 +0000 (11:15 +0200)] 
AOSP: gitignore

10 years agoAOSP: Android: Add src directory symlinks
Dmitry Shmidt [Tue, 15 Nov 2011 14:00:34 +0000 (16:00 +0200)] 
AOSP: Android: Add src directory symlinks

These are from Android wpa_supplicant_8.git initial 0.8.X commit
8d520ff1dc2da35cdca849e982051b86468016d8.

Change-Id: I26aec5afbbd4f4a1f5fd900912545b6f5050de64
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit 05d4c3aec6024ed308d640d68f91ab4e926fd79d)

10 years agoAOSP: Add CleanSpec.mk
Jouni Malinen [Fri, 1 Nov 2013 09:11:11 +0000 (11:11 +0200)] 
AOSP: Add CleanSpec.mk

This is a snapshot from AOSP commit
51b6ea882f234c14cd1fe1332a3840cf61fafcca.

10 years agoAOSP: Android: Add MODULE_LICENSE_BSD_LIKE
Dmitry Shmidt [Tue, 15 Nov 2011 13:58:56 +0000 (15:58 +0200)] 
AOSP: Android: Add MODULE_LICENSE_BSD_LIKE

These are from Android wpa_supplicant_8.git initial 0.8.X commit
8d520ff1dc2da35cdca849e982051b86468016d8.

Change-Id: I26aec5afbbd4f4a1f5fd900912545b6f5050de64
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
(cherry picked from commit a6df7575b64ef902ae27d17769a3cf7e6056a975)

10 years agoP2P: Fix crash when failed to create GO interface aosp-kk-from-upstream
Vinay Krishna Eranna [Tue, 3 Sep 2013 08:17:21 +0000 (11:17 +0300)] 
P2P: Fix crash when failed to create GO interface

wpa_supplicant crashes if driver configuration for AP mode interface
configuration fails after group negotiation. This is because of a
regression from commit 1075b2957169d8f9d6dddd7679339c751dc9515b that
ends up freeing the wpa_s instance from within
wpa_supplicant_create_ap() without the caller knowing.

Fix this by using an eloop timeout to free remove the P2P group so that
wpa_supplicant_create_ap() and especially wpa_supplicant_associate()
callers do not need to know about interface getting possibly removed. In
addition, move the P2P specific code into p2p_supplicant.c where it
really belongs. This allows the already existing group formation timeout
to be used by reducing the timeout to zero.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agotests: Check wpa_supplicant connection after reset
Jouni Malinen [Tue, 3 Sep 2013 09:13:25 +0000 (12:13 +0300)] 
tests: Check wpa_supplicant connection after reset

Some test runs have resulted in wpa_supplicant being unresponsive or
very slow on the control interface. Check for that type of issues as
part of the reset sequence that is done between each test case.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoWPS NFC: Fix build without CONFIG_AP=y
Jouni Malinen [Tue, 3 Sep 2013 08:27:24 +0000 (11:27 +0300)] 
WPS NFC: Fix build without CONFIG_AP=y

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoSAE: Fix build without CONFIG_AP=y
Jouni Malinen [Tue, 3 Sep 2013 08:25:29 +0000 (11:25 +0300)] 
SAE: Fix build without CONFIG_AP=y

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agoP2P: Remove group from timeout on PSK failure
Jouni Malinen [Mon, 2 Sep 2013 13:33:42 +0000 (16:33 +0300)] 
P2P: Remove group from timeout on PSK failure

Avoid potential issues with removing a P2P group on PSK failure directly
from the wpa_supplicant_event() call since the caller (in driver_*.c)
may not be prepared for the interface disappearing at that point in
time.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>

10 years agotests: Add a test case for invitation after client removal
Jouni Malinen [Sun, 1 Sep 2013 17:47:37 +0000 (20:47 +0300)] 
tests: Add a test case for invitation after client removal

test_persistent_group_invite_removed_client verifies that a client
that is removed from a group can rejoin based on new invitation.

Signed-hostap: Jouni Malinen <j@w1.fi>

10 years agotests: Use a helper function for waiting session termination
Jouni Malinen [Sun, 1 Sep 2013 16:30:08 +0000 (19:30 +0300)] 
tests: Use a helper function for waiting session termination

Signed-hostap: Jouni Malinen <j@w1.fi>

10 years agotests: Add test cases for persistent P2P groups
Jouni Malinen [Sun, 1 Sep 2013 16:24:12 +0000 (19:24 +0300)] 
tests: Add test cases for persistent P2P groups

Signed-hostap: Jouni Malinen <j@w1.fi>

10 years agotests: Extend test_autogo_2cli to test client removal
Jouni Malinen [Sun, 1 Sep 2013 14:58:17 +0000 (17:58 +0300)] 
tests: Extend test_autogo_2cli to test client removal

Signed-hostap: Jouni Malinen <j@w1.fi>

10 years agotests: Add test cases for per-STA PSK in P2P group
Jouni Malinen [Sun, 1 Sep 2013 08:56:55 +0000 (11:56 +0300)] 
tests: Add test cases for per-STA PSK in P2P group

Signed-hostap: Jouni Malinen <j@w1.fi>

10 years agoP2P: Add event messages for possible PSK failures on P2P groups
Jouni Malinen [Sun, 1 Sep 2013 18:28:16 +0000 (21:28 +0300)] 
P2P: Add event messages for possible PSK failures on P2P groups

It is possible for the GO of a persistent group to change the PSK or
remove a client when per-client PSKs are used and this can happen
without the SSID changing (i.e., the group is still valid, but just not
for a specific client). If the client side of such persistent group ends
up trying to use an invalidated persistent group information, the
connection will fail in 4-way handshake. A new WPS provisioning step is
needed to recover from this.

Detect this type of case based on two 4-way handshake failures when
acting as a P2P client in a persistent group. A new
"P2P-PERSISTENT-PSK-FAIL id=<persistent group id>" event is used to
indicate when this happens. This makes it easier for upper layers to
remove the persistent group information with "REMOVE_NETWORK <persistent
group id>" if desired (e.g., based on user confirmation).

In addition to indicating the error cases for persistent groups, all
this type of PSK failures end up in the client removing the group with
the new reason=PSK_FAILURE information in the P2P-GROUP-REMOVED event.

Signed-hostap: Jouni Malinen <j@w1.fi>

10 years agoP2P: Document per-client keys and p2p_remove_client
Jouni Malinen [Sun, 1 Sep 2013 14:54:10 +0000 (17:54 +0300)] 
P2P: Document per-client keys and p2p_remove_client

Signed-hostap: Jouni Malinen <j@w1.fi>

10 years agoP2P: Do not store duplicate PSK entries for the same device
Jouni Malinen [Sun, 1 Sep 2013 14:47:05 +0000 (17:47 +0300)] 
P2P: Do not store duplicate PSK entries for the same device

If a client joins a P2P group multiple times, replace the previous
per-client PSK entry instead of adding a new entry each time.

Signed-hostap: Jouni Malinen <j@w1.fi>

10 years agoP2P: Add a command for removing a client from all groups
Jouni Malinen [Sun, 1 Sep 2013 14:37:22 +0000 (17:37 +0300)] 
P2P: Add a command for removing a client from all groups

The new control interface command P2P_REMOVE_CLIENT <P2P Device
Address|iface=Address> can now be used to remove the specified client
from all groups (ongoing and persistent) in which the local device is a
GO. This will remove any per-client PSK entries and deauthenticate the
device.

Signed-hostap: Jouni Malinen <j@w1.fi>

10 years agoP2P: Maintain list of per-client PSKs for persistent groups
Jouni Malinen [Sun, 1 Sep 2013 10:40:33 +0000 (13:40 +0300)] 
P2P: Maintain list of per-client PSKs for persistent groups

Record all generated per-client PSKs in the persistent group network
block and configure these for the GO Authenticator whenever re-starting
the persistent group. This completes per-client PSK support for
persistent groups.

Signed-hostap: Jouni Malinen <j@w1.fi>

10 years agoP2P: Select PSK based on Device Address instead of Interface Address
Jouni Malinen [Sun, 1 Sep 2013 08:30:26 +0000 (11:30 +0300)] 
P2P: Select PSK based on Device Address instead of Interface Address

When using per-device PSKs, select the PSK based on the P2P Device
Address of the connecting client if that client is a P2P Device. This
allows the P2P Interface Address to be changed between P2P group
connections which may happen especially when using persistent groups.

Signed-hostap: Jouni Malinen <j@w1.fi>

10 years agoP2P: Make peer's P2P Device Address available to authenticator
Jouni Malinen [Sun, 1 Sep 2013 08:05:19 +0000 (11:05 +0300)] 
P2P: Make peer's P2P Device Address available to authenticator

This can be used to implement per-device PSK selection based on the
peer's P2P Device Address instead of P2P Interface Address.

Signed-hostap: Jouni Malinen <j@w1.fi>

10 years agoP2P: Store P2P Device Address in per-device PSK records
Jouni Malinen [Sun, 1 Sep 2013 07:47:34 +0000 (10:47 +0300)] 
P2P: Store P2P Device Address in per-device PSK records

This makes the P2P Device Address of the Enrollee available with the PSK
records to allow P2P Device Address instead of P2P Interface Address to
be used for finding the correct PSK.

Signed-hostap: Jouni Malinen <j@w1.fi>

10 years agoP2P: Allow per-device PSK to be assigned
Jouni Malinen [Sun, 1 Sep 2013 07:08:30 +0000 (10:08 +0300)] 
P2P: Allow per-device PSK to be assigned

"wpa_cli p2p_set per_sta_psk <0/1>" can now be used to disable/enable
use of per-device PSKs in P2P groups. This is disabled by default.
When enabled, a default passphrase is still generated by the GO for
legacy stations, but all P2P and non-P2P devices using WPS will get
a unique PSK.

This gives more protection for the P2P group by preventing clients from
being able to derive the unicast keys used by other clients. This is
also a step towards allowing specific clients to be removed from a group
reliably without having to tear down the full group to do so.

Signed-hostap: Jouni Malinen <j@w1.fi>

10 years agowpa_cli: Add tab completion for p2p_set field values
Jouni Malinen [Sat, 31 Aug 2013 17:58:35 +0000 (20:58 +0300)] 
wpa_cli: Add tab completion for p2p_set field values

Signed-hostap: Jouni Malinen <j@w1.fi>