nl80211: Extend shared_freq to handle AP/GO mode interfaces
Signed-hostap: Jithu Jance <jithu@broadcom.com>
This commit is contained in:
parent
86ae2e8a42
commit
d3bd0f057c
1 changed files with 4 additions and 1 deletions
|
@ -8449,7 +8449,10 @@ static int wpa_driver_nl80211_shared_freq(void *priv)
|
||||||
MACSTR,
|
MACSTR,
|
||||||
driver->phyname, driver->first_bss.ifname,
|
driver->phyname, driver->first_bss.ifname,
|
||||||
MAC2STR(driver->first_bss.addr));
|
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",
|
wpa_printf(MSG_DEBUG, "nl80211: Shared freq for PHY %s: %d",
|
||||||
drv->phyname, freq);
|
drv->phyname, freq);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue