Allow background scan period to be configured
A network block specific background scan period can now be configured for drivers that implement internal background scan mechanism for roaming and BSS selection. Signed-hostap: Bala Shanmugam <bkamatch@qca.qualcomm.com>
This commit is contained in:
parent
17218a7bab
commit
1f6c0ab872
7 changed files with 32 additions and 0 deletions
|
@ -332,6 +332,13 @@ struct wpa_driver_associate_params {
|
|||
*/
|
||||
int freq;
|
||||
|
||||
/**
|
||||
* bg_scan_period - Background scan period in seconds, 0 to disable
|
||||
* background scan, or -1 to indicate no change to default driver
|
||||
* configuration
|
||||
*/
|
||||
int bg_scan_period;
|
||||
|
||||
/**
|
||||
* wpa_ie - WPA information element for (Re)Association Request
|
||||
* WPA information element to be included in (Re)Association
|
||||
|
|
|
@ -6575,6 +6575,12 @@ static int wpa_driver_nl80211_connect(
|
|||
wpa_printf(MSG_DEBUG, " * freq=%d", params->freq);
|
||||
NLA_PUT_U32(msg, NL80211_ATTR_WIPHY_FREQ, params->freq);
|
||||
}
|
||||
if (params->bg_scan_period >= 0) {
|
||||
wpa_printf(MSG_DEBUG, " * bg scan period=%d",
|
||||
params->bg_scan_period);
|
||||
NLA_PUT_U16(msg, NL80211_ATTR_BG_SCAN_PERIOD,
|
||||
params->bg_scan_period);
|
||||
}
|
||||
if (params->ssid) {
|
||||
wpa_hexdump_ascii(MSG_DEBUG, " * SSID",
|
||||
params->ssid, params->ssid_len);
|
||||
|
@ -6772,6 +6778,12 @@ static int wpa_driver_nl80211_associate(
|
|||
drv->assoc_freq = params->freq;
|
||||
} else
|
||||
drv->assoc_freq = 0;
|
||||
if (params->bg_scan_period >= 0) {
|
||||
wpa_printf(MSG_DEBUG, " * bg scan period=%d",
|
||||
params->bg_scan_period);
|
||||
NLA_PUT_U16(msg, NL80211_ATTR_BG_SCAN_PERIOD,
|
||||
params->bg_scan_period);
|
||||
}
|
||||
if (params->ssid) {
|
||||
wpa_hexdump_ascii(MSG_DEBUG, " * SSID",
|
||||
params->ssid, params->ssid_len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue