From 4d584d8c2b08d851c2f46b144e54446445f8d1f8 Mon Sep 17 00:00:00 2001 From: Mikael Kanstrup Date: Tue, 20 Sep 2016 08:40:03 +0200 Subject: [PATCH] nl80211: Add driver parameter force_bss_selection Add driver parameter command to force capability flag WPA_DRIVER_FLAGS_BSS_SELECTION even if driver states otherwise. This is mainly for testing purposes. Signed-off-by: Mikael Kanstrup --- src/drivers/driver_nl80211.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 24154b957..9587eb4f2 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -7017,6 +7017,12 @@ static int nl80211_set_param(void *priv, const char *param) drv->force_connect_cmd = 1; } + if (os_strstr(param, "force_bss_selection=1")) { + struct i802_bss *bss = priv; + struct wpa_driver_nl80211_data *drv = bss->drv; + drv->capa.flags |= WPA_DRIVER_FLAGS_BSS_SELECTION; + } + if (os_strstr(param, "no_offchannel_tx=1")) { struct i802_bss *bss = priv; struct wpa_driver_nl80211_data *drv = bss->drv;