From: Jouni Malinen Date: Sun, 5 Jan 2020 19:18:18 +0000 (+0200) Subject: nl80211: Allow control port to be disabled with a driver param X-Git-Tag: hostap_2_10~1974 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c52129bed805a1f8ee61285509966d595df77aba;p=thirdparty%2Fhostap.git nl80211: Allow control port to be disabled with a driver param This is mainly for testing purposes to allow wpa_supplicant and hostapd functionality to be tested both with and without using the nl80211 control port which is by default used whenever supported by the driver. control_port=0 driver parameter will prevent that from happening. Signed-off-by: Jouni Malinen --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index c7302f8cc..ddbd4b4bf 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -8006,6 +8006,9 @@ static int nl80211_set_param(void *priv, const char *param) drv->test_use_roc_tx = 1; } + if (os_strstr(param, "control_port=0")) + drv->capa.flags &= ~WPA_DRIVER_FLAGS_CONTROL_PORT; + return 0; }