Change-Id: I23bf35bfdcde47216655b33c8fae17dc358d83a4 Signed-off-by: Matthew Wang <matthewmwang@xxxxxxxxxxxx> --- wpa_supplicant/ctrl_iface.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index f503beae0..0f651bbc7 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -8655,6 +8655,7 @@ static int wpa_supplicant_driver_cmd(struct wpa_supplicant *wpa_s, char *cmd, int ret; ret = wpa_drv_driver_cmd(wpa_s, cmd, buf, buflen); +#ifdef CONFIG_P2P if (ret == 0) { if (os_strncasecmp(cmd, "COUNTRY", 7) == 0) { struct p2p_data *p2p = wpa_s->global->p2p; @@ -8670,6 +8671,7 @@ static int wpa_supplicant_driver_cmd(struct wpa_supplicant *wpa_s, char *cmd, if (os_snprintf_error(buflen, ret)) ret = -1; } +#endif /* CONFIG_P2P */ return ret; } #endif /* ANDROID */ -- 2.47.0.338.g60cca15819-goog _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap