aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/cfg80211.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-12-14 06:20:27 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-12-15 14:45:45 -0500
commitbdd90d5e36a55271beb957b3d7ca3e29b2a90207 (patch)
tree79243e73e6c64217bc676507504b72a2d59fc096 /include/net/cfg80211.h
parentd83023daa219486e9aa139d423308a045bf0438b (diff)
cfg80211: validate nl80211 station handling better
The nl80211 station handling code is a bit messy and doesn't do a lot of validation. It seems like this could be an issue for drivers that don't use mac80211 to validate everything. As cfg80211 doesn't keep station state, move the validation of allowing supported_rates to change for TDLS only in station mode to mac80211. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r--include/net/cfg80211.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 150c0ee714c2..5eda5933ae01 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1346,7 +1346,12 @@ struct cfg80211_gtk_rekey_data {
1346 * 1346 *
1347 * @add_station: Add a new station. 1347 * @add_station: Add a new station.
1348 * @del_station: Remove a station; @mac may be NULL to remove all stations. 1348 * @del_station: Remove a station; @mac may be NULL to remove all stations.
1349 * @change_station: Modify a given station. 1349 * @change_station: Modify a given station. Note that flags changes are not much
1350 * validated in cfg80211, in particular the auth/assoc/authorized flags
1351 * might come to the driver in invalid combinations -- make sure to check
1352 * them, also against the existing state! Also, supported_rates changes are
1353 * not checked in station mode -- drivers need to reject (or ignore) them
1354 * for anything but TDLS peers.
1350 * @get_station: get station information for the station identified by @mac 1355 * @get_station: get station information for the station identified by @mac
1351 * @dump_station: dump station callback -- resume dump at index @idx 1356 * @dump_station: dump station callback -- resume dump at index @idx
1352 * 1357 *