From 080aa9c1c5908399080d67bc2cedea232aa0dcf2 Mon Sep 17 00:00:00 2001 From: Eyal Shapira Date: Sat, 21 Jul 2012 10:55:48 +0300 Subject: nl80211: fix extending shared_freq detection to AP/GO (BRCM) Commit d3bd0f "nl80211: Extend shared_freq to handle AP/GO mode interfaces" still discards AP/GO interfaces so effectively shared_freq won't work on AP/GO interaces like intended. Signed-off-by: Eyal Shapira --- src/drivers/driver_nl80211.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 41a81fe..d6a724c 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -8653,7 +8653,11 @@ static int wpa_driver_nl80211_shared_freq(void *priv) struct wpa_driver_nl80211_data, list) { if (drv == driver || os_strcmp(drv->phyname, driver->phyname) != 0 || +#ifdef ANDROID_P2P + (!driver->associated && !is_ap_interface(driver->nlmode))) +#else !driver->associated) +#endif continue; wpa_printf(MSG_DEBUG, "nl80211: Found a match for PHY %s - %s " -- cgit v1.1