aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-12-30 22:07:23 (GMT)
committerJouni Malinen <j@w1.fi>2013-12-31 13:45:18 (GMT)
commit327b01d3d78d74a1417b4ebdd2340a9fdbc932d1 (patch)
treef45b7f1a3dae6f5b3020c3902d0f4343879e1589 /src
parentd7257de63113b3e635137c8f1a555d8bce22775b (diff)
downloadhostap-327b01d3d78d74a1417b4ebdd2340a9fdbc932d1.zip
hostap-327b01d3d78d74a1417b4ebdd2340a9fdbc932d1.tar.gz
hostap-327b01d3d78d74a1417b4ebdd2340a9fdbc932d1.tar.bz2
nl80211: Add driver param for forcing monitor and connect APIs
use_monitor=1 and force_connect_cmd=1 driver parameters can now be used to force older monitor interface design and the connect API (SME in driver) to increase hwsim testing coverage. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver_nl80211.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 30b0497..5b82f60 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -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;
}