]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
nl80211: Extend shared_freq to handle AP/GO mode interfaces
authorJithu Jance <jithu@broadcom.com>
Sun, 8 Apr 2012 17:44:05 +0000 (20:44 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 8 Apr 2012 17:44:05 +0000 (20:44 +0300)
Signed-hostap: Jithu Jance <jithu@broadcom.com>

src/drivers/driver_nl80211.c

index 1ceca542b0152cea1552fdd4f428c21bb024ad97..d7bc32cc5a5228f13e99848ac6abf2c39ce1bef9 100644 (file)
@@ -8449,7 +8449,10 @@ static int wpa_driver_nl80211_shared_freq(void *priv)
                           MACSTR,
                           driver->phyname, driver->first_bss.ifname,
                           MAC2STR(driver->first_bss.addr));
-               freq = nl80211_get_assoc_freq(driver);
+               if (is_ap_interface(driver->nlmode))
+                       freq = driver->first_bss.freq;
+               else
+                       freq = nl80211_get_assoc_freq(driver);
                wpa_printf(MSG_DEBUG, "nl80211: Shared freq for PHY %s: %d",
                           drv->phyname, freq);
        }