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
|
@ -707,6 +707,13 @@ struct wpa_driver_ap_params {
|
|||
* enabled.
|
||||
*/
|
||||
u8 access_network_type;
|
||||
|
||||
/**
|
||||
* ap_max_inactivity - Timeout in seconds to detect STA's inactivity
|
||||
*
|
||||
* This is used by driver which advertises this capability.
|
||||
*/
|
||||
int ap_max_inactivity;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -790,6 +797,8 @@ struct wpa_driver_capa {
|
|||
#define WPA_DRIVER_FLAGS_PROBE_RESP_OFFLOAD 0x00200000
|
||||
/* Driver supports U-APSD in AP mode */
|
||||
#define WPA_DRIVER_FLAGS_AP_UAPSD 0x00400000
|
||||
/* Driver supports inactivity timer in AP mode */
|
||||
#define WPA_DRIVER_FLAGS_INACTIVITY_TIMER 0x00800000
|
||||
unsigned int flags;
|
||||
|
||||
int max_scan_ssids;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue