AOSP: Add CleanSpec.mk

This is a snapshot from AOSP commit
51b6ea882f234c14cd1fe1332a3840cf61fafcca.
AOSP: Android: Add MODULE_LICENSE_BSD_LIKE and src 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>
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
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
AOSP: Some P2P connection-in-progress changes

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>
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>
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>
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
Update AP IE regardless WPA_DRIVER_FLAGS_BSS_SELECTION flag

Change-Id: Ia2b0aea81e250cfd989861ed37551ca8c41f7a66
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
P2P: Add commands for p2p redirection

Bug: 9056601

Change-Id: I6d78433df656c24af74a6825624c68231a4bf87d
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>