]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Include own MAC address in status info even in non-P2P builds
authorJouni Malinen <j@w1.fi>
Sun, 21 Nov 2010 10:35:49 +0000 (12:35 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 21 Nov 2010 10:35:49 +0000 (12:35 +0200)
wpa_supplicant/ctrl_iface.c

index c28f6a8e38462519fb908c9ad083b9a5a2921b04..cfb8e9f8305aefcc9eacff20b4d003ac9333ab07 100644 (file)
@@ -762,13 +762,13 @@ static int wpa_supplicant_ctrl_iface_status(struct wpa_supplicant *wpa_s,
                        return pos - buf;
                pos += ret;
        }
+#endif /* CONFIG_P2P */
 
        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) ||
            wpa_s->key_mgmt == WPA_KEY_MGMT_IEEE8021X_NO_WPA) {