diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-12-27 11:32:09 -0500 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-01-03 07:01:45 -0500 |
commit | ba23d2068d85f6616ea5f92320c04e87d4b9e141 (patch) | |
tree | 8ea8b7d8ab39ada84c967531875aef24892667d6 /net/mac80211/cfg.c | |
parent | 21add825f90a50407e0121833c8b7cd2c071c478 (diff) |
cfg80211: disallow more station changes
The following changes are invalid and should be
disallowed when a station already exists:
* supported rates changes, except for TDLS peers
* listen interval changes
* HT capability changes
Disallow them and also update a mac80211 comment
explaining how they would be racy.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/cfg.c')
-rw-r--r-- | net/mac80211/cfg.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index f4d12c71928d..7d290bce0927 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -1208,10 +1208,11 @@ static int sta_apply_parameters(struct ieee80211_local *local, | |||
1208 | sta->sta.aid = params->aid; | 1208 | sta->sta.aid = params->aid; |
1209 | 1209 | ||
1210 | /* | 1210 | /* |
1211 | * FIXME: updating the following information is racy when this | 1211 | * Some of the following updates would be racy if called on an |
1212 | * function is called from ieee80211_change_station(). | 1212 | * existing station, via ieee80211_change_station(). However, |
1213 | * However, all this information should be static so | 1213 | * all such changes are rejected by cfg80211 except for updates |
1214 | * maybe we should just reject attemps to change it. | 1214 | * changing the supported rates on an existing but not yet used |
1215 | * TDLS peer. | ||
1215 | */ | 1216 | */ |
1216 | 1217 | ||
1217 | if (params->listen_interval >= 0) | 1218 | if (params->listen_interval >= 0) |