From: Jouni Malinen Date: Sat, 28 Mar 2020 18:38:11 +0000 (+0200) Subject: nl80211: Allow full AP client state capability to be disabled X-Git-Tag: hostap_2_10~1524 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a18f8df6370ae05c5d7f49f40adc43e02387f40;p=thirdparty%2Fhostap.git nl80211: Allow full AP client state capability to be disabled The new driver param full_ap_client_state=0 can be used to test functionality with the driver capability for full AP client state being forced to be disabled. Signed-off-by: Jouni Malinen --- diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 4790770bf..3b7c31c89 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -8128,6 +8128,9 @@ static int nl80211_set_param(void *priv, const char *param) if (os_strstr(param, "control_port=0")) drv->capa.flags &= ~WPA_DRIVER_FLAGS_CONTROL_PORT; + if (os_strstr(param, "full_ap_client_state=0")) + drv->capa.flags &= ~WPA_DRIVER_FLAGS_FULL_AP_CLIENT_STATE; + return 0; }