aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2007-07-10 13:32:11 -0400
committerJohn W. Linville <linville@tuxdriver.com>2007-07-12 16:07:26 -0400
commit63fc33ceb0ccc08b3f62d7bfe56a33eb33ca9427 (patch)
tree6fb60af08616b2f4065cdd74b83f43c819f1853c /net/mac80211/ieee80211_i.h
parent5628221caf88e2a052782b042e12da7cd34111b0 (diff)
[PATCH] mac80211: improved 802.11g CTS protection
Currently, CTS protection is partially implemented twice: 1. via prism2 ioctls, only used by hostapd 2. via STA beacon parsing, recorded in sta.use_protection but never used (other than printed in debugfs) Protection control should be implemented on a per-subif basis. For example, a single physical device may be running a soft AP on one channel, and a STA on another. The AP interface should use protection based on what hostapd told it, and the STA interface should use protection based on beacon parsing. These should operate independantly: one subif using protection should not influence the other. To implement this, I moved the use_protection flag into ieee80211_sub_if_data and removed the device-global cts_protect_erp_frames flag. I also made the PRISM2_PARAM_CTS_PROTECT_ERP_FRAMES write operation only available for AP interfaces, to avoid any possibility of the user messing with the behaviour of a STA. Signed-off-by: Daniel Drake <dsd@gentoo.org> Signed-off-by: Jiri Benc <jbenc@suse.cz> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r--net/mac80211/ieee80211_i.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 99ff7c5e9204..055a2a912185 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -241,7 +241,6 @@ struct ieee80211_if_sta {
241 unsigned int authenticated:1; 241 unsigned int authenticated:1;
242 unsigned int associated:1; 242 unsigned int associated:1;
243 unsigned int probereq_poll:1; 243 unsigned int probereq_poll:1;
244 unsigned int use_protection:1;
245 unsigned int create_ibss:1; 244 unsigned int create_ibss:1;
246 unsigned int mixed_cell:1; 245 unsigned int mixed_cell:1;
247 unsigned int wmm_enabled:1; 246 unsigned int wmm_enabled:1;
@@ -284,6 +283,7 @@ struct ieee80211_sub_if_data {
284 int mc_count; 283 int mc_count;
285 unsigned int allmulti:1; 284 unsigned int allmulti:1;
286 unsigned int promisc:1; 285 unsigned int promisc:1;
286 unsigned int use_protection:1; /* CTS protect ERP frames */
287 287
288 struct net_device_stats stats; 288 struct net_device_stats stats;
289 int drop_unencrypted; 289 int drop_unencrypted;
@@ -444,7 +444,6 @@ struct ieee80211_local {
444 int *basic_rates[NUM_IEEE80211_MODES]; 444 int *basic_rates[NUM_IEEE80211_MODES];
445 445
446 int rts_threshold; 446 int rts_threshold;
447 int cts_protect_erp_frames;
448 int fragmentation_threshold; 447 int fragmentation_threshold;
449 int short_retry_limit; /* dot11ShortRetryLimit */ 448 int short_retry_limit; /* dot11ShortRetryLimit */
450 int long_retry_limit; /* dot11LongRetryLimit */ 449 int long_retry_limit; /* dot11LongRetryLimit */