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>
This commit is contained in:
parent
07f53b8cc7
commit
a0133ee1c9
3 changed files with 18 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue