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 <j@w1.fi>
This commit is contained in:
Jouni Malinen 2020-03-28 20:38:11 +02:00
parent 7b156a3c5a
commit 1a18f8df63

View file

@ -8128,6 +8128,9 @@ static int nl80211_set_param(void *priv, const char *param)
if (os_strstr(param, "control_port=0")) if (os_strstr(param, "control_port=0"))
drv->capa.flags &= ~WPA_DRIVER_FLAGS_CONTROL_PORT; 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; return 0;
} }