diff options
author | Eyal Shapira <eyal@wizery.com> | 2012-07-21 10:55:48 +0300 |
---|---|---|
committer | Arik Nemtsov <arik@wizery.com> | 2012-08-02 13:04:01 +0300 |
commit | 080aa9c1c5908399080d67bc2cedea232aa0dcf2 (patch) | |
tree | 7f0a333480c2b61dfb9e9e2153809a8863f9815d | |
parent | 9c0341977f2021f38ba98f8335adcbf0a1d86499 (diff) | |
download | external_wpa_supplicant_8_ti-080aa9c1c5908399080d67bc2cedea232aa0dcf2.zip external_wpa_supplicant_8_ti-080aa9c1c5908399080d67bc2cedea232aa0dcf2.tar.gz external_wpa_supplicant_8_ti-080aa9c1c5908399080d67bc2cedea232aa0dcf2.tar.bz2 |
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 <eyal@wizery.com>
-rw-r--r-- | src/drivers/driver_nl80211.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 " |