]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Allow full AP client state capability to be disabled
authorJouni Malinen <j@w1.fi>
Sat, 28 Mar 2020 18:38:11 +0000 (20:38 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 28 Mar 2020 18:38:11 +0000 (20:38 +0200)
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>
src/drivers/driver_nl80211.c

index 4790770bf2441272ced49d57f6b0a8cb2ba59c14..3b7c31c8949267dbea39710717cc32d056d21e95 100644 (file)
@@ -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;
 }