diff options
author | Irfan Sheriff <isheriff@google.com> | 2012-09-09 17:08:19 -0700 |
---|---|---|
committer | Vishal Mahaveer <vishalm@ti.com> | 2012-12-14 13:36:23 -0600 |
commit | 161f26dcfb2f9ff69e3ba5457d8074157f1ced33 (patch) | |
tree | 5b86773a2e24d621539cc49f480c15ad3b7ab8ff | |
parent | 7193ff6570546d17e7975c9909005273060cbc64 (diff) | |
download | external_wpa_supplicant_8_ti-161f26dcfb2f9ff69e3ba5457d8074157f1ced33.zip external_wpa_supplicant_8_ti-161f26dcfb2f9ff69e3ba5457d8074157f1ced33.tar.gz external_wpa_supplicant_8_ti-161f26dcfb2f9ff69e3ba5457d8074157f1ced33.tar.bz2 |
Add WFD dev info in device found event
Change-Id: Iad955663a694a88001fd8d4fc76fac3c6da7ba0e
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rw-r--r-- | wpa_supplicant/p2p_supplicant.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index 81eafa7..9ca0fcb 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -1108,16 +1108,27 @@ void wpas_dev_found(void *ctx, const u8 *addr, #ifndef CONFIG_NO_STDOUT_DEBUG struct wpa_supplicant *wpa_s = ctx; char devtype[WPS_DEV_TYPE_BUFSIZE]; +#define WFD_DEV_INFO_SIZE 9 + char wfd_dev_info_hex[2 * WFD_DEV_INFO_SIZE + 1]; + +#ifdef CONFIG_WIFI_DISPLAY + if (info->wfd_subelems) { + wpa_snprintf_hex(wfd_dev_info_hex, sizeof(wfd_dev_info_hex), + wpabuf_head(info->wfd_subelems), + WFD_DEV_INFO_SIZE); + } +#endif /* CONFIG_WIFI_DISPLAY */ wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_DEVICE_FOUND MACSTR " p2p_dev_addr=" MACSTR " pri_dev_type=%s name='%s' config_methods=0x%x " - "dev_capab=0x%x group_capab=0x%x", + "dev_capab=0x%x group_capab=0x%x%s%s", MAC2STR(addr), MAC2STR(info->p2p_device_addr), wps_dev_type_bin2str(info->pri_dev_type, devtype, sizeof(devtype)), info->device_name, info->config_methods, - info->dev_capab, info->group_capab); + info->dev_capab, info->group_capab, + wfd_dev_info_hex[0] ? " wfd_dev_info=0x" : "", wfd_dev_info_hex); #endif /* CONFIG_NO_STDOUT_DEBUG */ wpas_notify_p2p_device_found(ctx, info->p2p_device_addr, new_device); |