diff options
author | Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> | 2012-03-02 05:20:02 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-05 15:38:34 -0500 |
commit | 1b658f118b11de3c4052ed8cbdd5803cd1fa5670 (patch) | |
tree | 162160c05d29fc99b18d1914ffe2d614f2c9af6a /include/net | |
parent | d665508b98d3cdbeb476e7d6848a513184a81ed0 (diff) |
cfg80211: Add an attribute to set inactivity timeout in AP mode
This patch adds an attribute, NL80211_ATTR_INACTIVITY_TIMEOUT,
to set the inactivity timeout which can be used to remove the
station in AP mode. This can be passed in NL80211_CMD_START_AP
and used by the drivers which have AP MLME in firmware but
don't support get_station() properly. To disable inactivity
timer in userspace, wpa_s for example, there is a new flag,
NL80211_FEATURE_INACTIVITY_TIMER, in nl80211_feature_flags
through which drivers can register their capability to use
the inactivity timeout to free the stations.
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Acked-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/cfg80211.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index d640a39d9513..804805827736 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -413,6 +413,7 @@ struct cfg80211_beacon_data { | |||
413 | * @crypto: crypto settings | 413 | * @crypto: crypto settings |
414 | * @privacy: the BSS uses privacy | 414 | * @privacy: the BSS uses privacy |
415 | * @auth_type: Authentication type (algorithm) | 415 | * @auth_type: Authentication type (algorithm) |
416 | * @inactivity_timeout: time in seconds to determine station's inactivity. | ||
416 | */ | 417 | */ |
417 | struct cfg80211_ap_settings { | 418 | struct cfg80211_ap_settings { |
418 | struct cfg80211_beacon_data beacon; | 419 | struct cfg80211_beacon_data beacon; |
@@ -424,6 +425,7 @@ struct cfg80211_ap_settings { | |||
424 | struct cfg80211_crypto_settings crypto; | 425 | struct cfg80211_crypto_settings crypto; |
425 | bool privacy; | 426 | bool privacy; |
426 | enum nl80211_auth_type auth_type; | 427 | enum nl80211_auth_type auth_type; |
428 | int inactivity_timeout; | ||
427 | }; | 429 | }; |
428 | 430 | ||
429 | /** | 431 | /** |