nl80211: Extend shared_freq to handle AP/GO mode interfaces

Signed-hostap: Jithu Jance <jithu@broadcom.com>
This commit is contained in:
Jithu Jance 2012-04-08 20:44:05 +03:00 committed by Jouni Malinen
parent 86ae2e8a42
commit d3bd0f057c

View 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);
}