From: Jouni Malinen Date: Wed, 30 Jun 2010 14:39:29 +0000 (-0700) Subject: Add P2P Interface Address into ctrl_iface status output X-Git-Tag: hostap-1-bp~1108 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d4747a9a24e80412a76657bfa6d4c52b2db848d;p=thirdparty%2Fhostap.git Add P2P Interface Address into ctrl_iface status output --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 5e0956621..e82d31d17 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -606,6 +606,12 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s, return pos - buf; pos += ret; } + + ret = os_snprintf(pos, end - pos, "address=" MACSTR "\n", + MAC2STR(wpa_s->own_addr)); + if (ret < 0 || ret >= end - pos) + return pos - buf; + pos += ret; #endif /* CONFIG_P2P */ if (wpa_key_mgmt_wpa_ieee8021x(wpa_s->key_mgmt) ||