aboutsummaryrefslogtreecommitdiffstats
path: root/src/wps
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2013-11-08 11:10:19 -0800
committerDmitry Shmidt <dimitrysh@google.com>2013-11-08 11:10:19 -0800
commit5460547a121207cf7a99eac45e05fcdd83be3161 (patch)
treee9f74cb4a23d99f1b2f0945efe52acc1a3e4554d /src/wps
parentffd6bf9543a8ca0d7ec8b0075bdbb49b853a3e7d (diff)
downloadandroid_external_wpa_supplicant_8-5460547a121207cf7a99eac45e05fcdd83be3161.tar.gz
android_external_wpa_supplicant_8-5460547a121207cf7a99eac45e05fcdd83be3161.tar.bz2
android_external_wpa_supplicant_8-5460547a121207cf7a99eac45e05fcdd83be3161.zip
Cumulative patch from commit 10222ca19217b743687be311183f58a250d3a55f
10222ca Android: Sync Android.mk with Makefile aebfbcb Android: Sync Android.mk with Makefile 890b3a4 Android: Sync Android.mk with Makefile 736abfc Android: Set proper path to keystore include dir bbd84e5 Android: Add CONFIG_ACS option to makefile 5e42035 Android: Fix CONFIG_EAP_PROXY option and move it to right place 643fab3 Android: Add CONFIG_IEEE80211AC option to makefile 4ba8309 Android: Add CONFIG_EAP_UNAUTH_TLS option to makefile 53414a7 Android: Add liblog 1d415f1 Android: Switch keystore to binder 4e5a4d3 Android: Get rid of LOCAL_MODULE_TAGS := user 206d813 Android: Restore OpenSSL ENGINE support 6dfdb80 Android: Remove obsolete keystore path 1176ab6 Android: Use keystore ENGINE for private key operations 6dc94a6 Android: Use correct header file path for capability.h 91f9e60 GAS: Replenish AP station session timer to 5 seconds e5e74e5 eloop: Add support for replenishing a registered timeout b7997e0 Android: Remove obsolete WPA_UNICODE_SSID define 2d39a4d hostapd: Allow hostapd_cli to work on Android 1c6edec nl80211: Work around nl_socket_set_nonblocking on Android c101bb9 hostapd: Add option to send OBSS scan params 60cdfd7 Android: Fix compilation without BOARD_WPA_SUPPLICANT_DRIVER e40634e Prohibit PNO start during assoc process and in connect state 3526ff0 Android: Add ANDROID_P2P define under BOARD_WLAN_DEVICE d0b2735 Android: Fix CFLAGS -> L_CFLAGS 9ec8766 P2P: Allow GO P2P Device Address to be used for scan result matching 83eefb4 P2P: Add debug print of P2P Group ID SSID b6881b5 WPS NFC: Add more debug for NFC Password Token matching 67a88a7 WPS NFC: Add debug log entry on OOB Dev Pw attribute addition 08b2677 Interworking: Use SSID from the BSS entry 5058975 Interworking: Reject BSS based on disallow_aps 6ede8a7 Interworking: Avoid duplicated network blocks d28f4e4 Interworking: Do not reconnect if already connected 5e1a456 hostapd: Do not start secondary BSS unless interface is enabled 36501a2 hostapd: Verify hostapd_setup_bss calls 54246f8 hostapd: Share a single function for BSS deinit 6d1ca81 Remove unused hostapd_cleanup_iface_pre() 747c85f hostapd: Add more debug prints to deinit path 6023a78 Restore hapd->interface_added tracking to core hostapd 486d2ff hostapd: Deinit ctrl_iface in case of add interface failure 8540e0b hostapd: Fix DETACH command debug prints to avoid use of freed memory cdf3fb1 Fix removal of a BSS that has not yet been fully initialized 2f99d90 Remove all BSSs on removal of the first one 1493380 drivers: Do not call hostapd_logger() 1281c0a Remove a compiler warning from -O0 build Change-Id: I0f4905d5310c51c9a4375d811a2e874651687d4f Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'src/wps')
-rw-r--r--src/wps/wps_attr_build.c6
-rw-r--r--src/wps/wps_registrar.c5
2 files changed, 10 insertions, 1 deletions
diff --git a/src/wps/wps_attr_build.c b/src/wps/wps_attr_build.c
index 3be89453..b2327544 100644
--- a/src/wps/wps_attr_build.c
+++ b/src/wps/wps_attr_build.c
@@ -382,14 +382,20 @@ int wps_build_oob_dev_pw(struct wpabuf *msg, u16 dev_pw_id,
const u8 *addr[1];
u8 pubkey_hash[WPS_HASH_LEN];
+ wpa_printf(MSG_DEBUG, "WPS: * OOB Device Password (dev_pw_id=%u)",
+ dev_pw_id);
addr[0] = wpabuf_head(pubkey);
hash_len = wpabuf_len(pubkey);
sha256_vector(1, addr, &hash_len, pubkey_hash);
wpabuf_put_be16(msg, ATTR_OOB_DEVICE_PASSWORD);
wpabuf_put_be16(msg, WPS_OOB_PUBKEY_HASH_LEN + 2 + dev_pw_len);
+ wpa_hexdump(MSG_DEBUG, "WPS: Public Key Hash",
+ pubkey_hash, WPS_OOB_PUBKEY_HASH_LEN);
wpabuf_put_data(msg, pubkey_hash, WPS_OOB_PUBKEY_HASH_LEN);
wpabuf_put_be16(msg, dev_pw_id);
+ wpa_hexdump_key(MSG_DEBUG, "WPS: OOB Device Password",
+ dev_pw, dev_pw_len);
wpabuf_put_data(msg, dev_pw, dev_pw_len);
return 0;
diff --git a/src/wps/wps_registrar.c b/src/wps/wps_registrar.c
index b7fcd9ce..7cb583cf 100644
--- a/src/wps/wps_registrar.c
+++ b/src/wps/wps_registrar.c
@@ -1379,7 +1379,8 @@ static int wps_get_dev_password(struct wps_data *wps)
}
if (pin == NULL) {
wpa_printf(MSG_DEBUG, "WPS: No Device Password available for "
- "the Enrollee");
+ "the Enrollee (context %p registrar %p)",
+ wps->wps, wps->wps->registrar);
wps_cb_pin_needed(wps->wps->registrar, wps->uuid_e,
&wps->peer_dev);
return -1;
@@ -2541,6 +2542,8 @@ static enum wps_process_res wps_process_m1(struct wps_data *wps,
const u8 *addr[1];
u8 hash[WPS_HASH_LEN];
+ wpa_printf(MSG_DEBUG, "WPS: Searching for NFC token match for id=%d (ctx %p registrar %p)",
+ wps->dev_pw_id, wps->wps, wps->wps->registrar);
token = wps_get_nfc_pw_token(
&wps->wps->registrar->nfc_pw_tokens, wps->dev_pw_id);
if (token) {