Parcourir la source

Add P2P Interface Address into ctrl_iface status output

Jouni Malinen il y a 14 ans
Parent
commit
6d4747a9a2
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      wpa_supplicant/ctrl_iface.c

+ 6 - 0
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) ||