]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/drivers/driver_nl80211.c
nl80211: Add driver param for forcing monitor and connect APIs
[thirdparty/hostap.git] / src / drivers / driver_nl80211.c
index 30b04976a0e6f4faa0089dc1b1f3e9e3dc7280a4..5b82f60dacee435527d68c04c14eb7e4b1b27286 100644 (file)
@@ -10139,6 +10139,18 @@ static int nl80211_set_param(void *priv, const char *param)
        }
 #endif /* CONFIG_P2P */
 
+       if (os_strstr(param, "use_monitor=1")) {
+               struct i802_bss *bss = priv;
+               struct wpa_driver_nl80211_data *drv = bss->drv;
+               drv->use_monitor = 1;
+       }
+
+       if (os_strstr(param, "force_connect_cmd=1")) {
+               struct i802_bss *bss = priv;
+               struct wpa_driver_nl80211_data *drv = bss->drv;
+               drv->capa.flags &= ~WPA_DRIVER_FLAGS_SME;
+       }
+
        return 0;
 }