From: Kuko Li Date: Tue, 7 Sep 2010 14:08:52 +0000 (+0300) Subject: P2P: Do not process configuration changes on non-P2P interfaces X-Git-Tag: hostap-1-bp~1053 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c0108340052c7f3be8950c4405267009f1f2f28;p=thirdparty%2Fhostap.git P2P: Do not process configuration changes on non-P2P interfaces --- diff --git a/wpa_supplicant/p2p_supplicant.c b/wpa_supplicant/p2p_supplicant.c index be6c3390a..efe5b60de 100644 --- a/wpa_supplicant/p2p_supplicant.c +++ b/wpa_supplicant/p2p_supplicant.c @@ -3341,6 +3341,9 @@ void wpas_p2p_update_config(struct wpa_supplicant *wpa_s) if (p2p == NULL) return; + if (!(wpa_s->drv_flags & WPA_DRIVER_FLAGS_P2P_CAPABLE)) + return; + if (wpa_s->conf->changed_parameters & CFG_CHANGED_DEVICE_NAME) p2p_set_dev_name(p2p, wpa_s->conf->device_name);