From ea7941b680338be9b3d00dcf0e18c27dc0d97b15 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 1 Nov 2013 12:33:56 +0200 Subject: [PATCH] AOSP: nl80211 use_multi_chan_concurrent=1 parameter This came as part of this AOSP commit: commit 1f69aa52ea2e0a73ac502565df8c666ee49cab6a Author: Dmitry Shmidt Date: Tue Jan 24 16:10:04 2012 -0800 Update to new version 0.8.16 from BRCM Sync with main tree commit b8349523e460493fa0b4de36c689595109e45e91 Author: Neeraj Kumar Garg Date: Tue Dec 27 23:21:45 2011 +0200 P2P: Reject p2p_group_add if forced frequency is not acceptable Change-Id: Icb4541a371b05c270e80440d7a7fdea7f33ff61e Signed-off-by: Dmitry Shmidt --- src/drivers/driver_nl80211.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 44d002b0f..67589c88f 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -9859,6 +9859,16 @@ static int nl80211_set_param(void *priv, const char *param) struct wpa_driver_nl80211_data *drv = bss->drv; drv->allow_p2p_device = 1; } + +#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.num_multichan_concurrent = 2; + } +#endif #endif /* CONFIG_P2P */ return 0; -- 2.47.2