diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-05-09 18:41:15 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-05-12 14:10:47 -0400 |
commit | 56d1893d94bc06d0b1aa3a53f924ed02f9e207bf (patch) | |
tree | 90862ae6788cf267631bd9ddebf4bc450d0d2b26 /include | |
parent | 15cb309614f35df344b9f06a9ea9f077d1e449db (diff) | |
download | linux-stable-56d1893d94bc06d0b1aa3a53f924ed02f9e207bf.tar.gz linux-stable-56d1893d94bc06d0b1aa3a53f924ed02f9e207bf.tar.bz2 linux-stable-56d1893d94bc06d0b1aa3a53f924ed02f9e207bf.zip |
cfg80211: restrict AP beacon intervals
Multiple virtual AP interfaces can currently try
to use different beacon intervals, but that just
leads to problems since it won't actually be done
that way by drivers. Return an error in this case
to make sure it won't be done wrong.
Also, ignore attempts to change the DTIM period
or beacon interval during the lifetime of the BSS.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/cfg80211.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 1f1e221b6ce3..a46adb7a91b7 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -1908,6 +1908,8 @@ struct cfg80211_cached_keys; * @mgmt_registrations_lock: lock for the list * @mtx: mutex used to lock data in this struct * @cleanup_work: work struct used for cleanup that can't be done directly + * @beacon_interval: beacon interval used on this device for transmitting + * beacons, 0 when not valid */ struct wireless_dev { struct wiphy *wiphy; @@ -1948,6 +1950,8 @@ struct wireless_dev { bool ps; int ps_timeout; + int beacon_interval; + #ifdef CONFIG_CFG80211_WEXT /* wext data */ struct { |