aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEyal Shapira <eyal@wizery.com>2012-07-22 02:29:22 +0300
committerArik Nemtsov <arik@wizery.com>2012-08-02 13:04:01 +0300
commit837bbbeac753065b907772576110ad76ff262d9c (patch)
tree8f4c286f533b499209a14d449d75f728ae712e51
parent080aa9c1c5908399080d67bc2cedea232aa0dcf2 (diff)
downloadexternal_wpa_supplicant_8_ti-837bbbeac753065b907772576110ad76ff262d9c.zip
external_wpa_supplicant_8_ti-837bbbeac753065b907772576110ad76ff262d9c.tar.gz
external_wpa_supplicant_8_ti-837bbbeac753065b907772576110ad76ff262d9c.tar.bz2
nl80211: add parameter to force multi channel concurrency (BRCM)
Add a parameter which can be set from wpa_s commandline or conf file to force real multi channel. Signed-off-by: Eyal Shapira <eyal@wizery.com>
-rw-r--r--src/drivers/driver_nl80211.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index d6a724c..a7e1659 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -8705,6 +8705,15 @@ static int nl80211_set_param(void *priv, const char *param)
drv->capa.flags |= WPA_DRIVER_FLAGS_P2P_CONCURRENT;
drv->capa.flags |= WPA_DRIVER_FLAGS_P2P_MGMT_AND_NON_P2P;
}
+#ifdef ANDROID_P2P
+ if(os_strstr(param, "use_multi_chan_concurrent=1")) {
+ struct i802_bss *bss = priv;
+ struct wpa_driver_nl80211_data *drv = bss->drv;
+ wpa_printf(MSG_DEBUG, "nl80211: Use Multi channel "
+ "concurrency");
+ drv->capa.flags |= WPA_DRIVER_FLAGS_MULTI_CHANNEL_CONCURRENT;
+ }
+#endif
#endif /* CONFIG_P2P */
return 0;