diff options
author | Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> | 2012-03-27 20:45:23 +0300 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-03-27 20:49:44 +0300 |
commit | a0133ee1c96db7436179d15f64e18e5165c4ab8c (patch) | |
tree | 659d54b5a44f5c94f62b9f636c34b8ffc3de9c7e /src/ap | |
parent | 07f53b8cc75c1c8ac6aa7eaaa8f625a7eed4de7d (diff) | |
download | external_wpa_supplicant_8_ti-a0133ee1c96db7436179d15f64e18e5165c4ab8c.zip external_wpa_supplicant_8_ti-a0133ee1c96db7436179d15f64e18e5165c4ab8c.tar.gz external_wpa_supplicant_8_ti-a0133ee1c96db7436179d15f64e18e5165c4ab8c.tar.bz2 |
nl80211: Make use of driver's capability to detect inactive stations
When drivers advertise their capability to free up inactive
stations based on ap_max_inactivity, send the inactivity period
timeout to driver in NL80211_ATTR_INACTIVITY_TIMEOUT. This
introduces a WPA_DRIVER_FLAGS (WPA_DRIVER_FLAGS_INACTIVITY_TIMER)
so that the inactivity period will be sent only when this capability
bit is set.
Signed-hostap: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Diffstat (limited to 'src/ap')
-rw-r--r-- | src/ap/beacon.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ap/beacon.c b/src/ap/beacon.c index 4ea8684..5efa4cd 100644 --- a/src/ap/beacon.c +++ b/src/ap/beacon.c @@ -682,6 +682,7 @@ void ieee802_11_set_beacon(struct hostapd_data *hapd) !is_zero_ether_addr(hapd->conf->hessid)) params.hessid = hapd->conf->hessid; params.access_network_type = hapd->conf->access_network_type; + params.ap_max_inactivity = hapd->conf->ap_max_inactivity; if (hostapd_drv_set_ap(hapd, ¶ms)) wpa_printf(MSG_ERROR, "Failed to set beacon parameters"); hostapd_free_ap_extra_ies(hapd, beacon, proberesp, assocresp); |