From a0133ee1c96db7436179d15f64e18e5165c4ab8c Mon Sep 17 00:00:00 2001 From: Vasanthakumar Thiagarajan Date: Tue, 27 Mar 2012 20:45:23 +0300 Subject: 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 --- src/ap/beacon.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ap') 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); -- cgit v1.1