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 <mikael.kanstrup@sonymobile.com>
This commit is contained in:
Mikael Kanstrup 2016-09-20 08:40:03 +02:00 committed by Jouni Malinen
parent 04e3d8156a
commit 4d584d8c2b

View file

@ -7017,6 +7017,12 @@ static int nl80211_set_param(void *priv, const char *param)
drv->force_connect_cmd = 1; 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")) { if (os_strstr(param, "no_offchannel_tx=1")) {
struct i802_bss *bss = priv; struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv; struct wpa_driver_nl80211_data *drv = bss->drv;