aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/ieee80211_i.h
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2007-07-27 09:43:24 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:47:38 -0400
commit7e9ed18874f0df84b6651f0636e1cfdac43bc610 (patch)
tree7bac6083031a48e488c0de5bf71e7f9398e0e011 /net/mac80211/ieee80211_i.h
parentd5d08def9216c445339c5a24a2cdc9cc2c8c13f7 (diff)
[MAC80211]: improved short preamble handling
Similarly to CTS protection, whether short preambles are used for 802.11b transmissions should be a per-subif setting, not device global. For STAs, this patch makes short preamble handling automatic based on the ERP IE. For APs, hostapd still uses the prism ioctls, but the write ioctl has been restricted to AP-only subifs. ieee80211_txrx_data.short_preamble (an unused field) was removed. Unfortunately, some API changes were required for the following functions: - ieee80211_generic_frame_duration - ieee80211_rts_duration - ieee80211_ctstoself_duration - ieee80211_rts_get - ieee80211_ctstoself_get Affected drivers were updated accordingly. 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.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index e76a58678959..b0af6e9f5319 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -127,7 +127,6 @@ struct ieee80211_txrx_data {
127 struct ieee80211_tx_control *control; 127 struct ieee80211_tx_control *control;
128 unsigned int unicast:1; 128 unsigned int unicast:1;
129 unsigned int ps_buffered:1; 129 unsigned int ps_buffered:1;
130 unsigned int short_preamble:1;
131 unsigned int probe_last_frag:1; 130 unsigned int probe_last_frag:1;
132 struct ieee80211_hw_mode *mode; 131 struct ieee80211_hw_mode *mode;
133 struct ieee80211_rate *rate; 132 struct ieee80211_rate *rate;
@@ -286,6 +285,11 @@ struct ieee80211_sub_if_data {
286 unsigned int promisc:1; 285 unsigned int promisc:1;
287 unsigned int use_protection:1; /* CTS protect ERP frames */ 286 unsigned int use_protection:1; /* CTS protect ERP frames */
288 287
288 /* use short preamble with IEEE 802.11b: this flag is set when the AP
289 * or beacon generator reports that there are no present stations that
290 * cannot support short preambles */
291 unsigned int short_preamble:1;
292
289 struct net_device_stats stats; 293 struct net_device_stats stats;
290 int drop_unencrypted; 294 int drop_unencrypted;
291 int eapol; /* 0 = process EAPOL frames as normal data frames, 295 int eapol; /* 0 = process EAPOL frames as normal data frames,
@@ -447,7 +451,6 @@ struct ieee80211_local {
447 int fragmentation_threshold; 451 int fragmentation_threshold;
448 int short_retry_limit; /* dot11ShortRetryLimit */ 452 int short_retry_limit; /* dot11ShortRetryLimit */
449 int long_retry_limit; /* dot11LongRetryLimit */ 453 int long_retry_limit; /* dot11LongRetryLimit */
450 int short_preamble; /* use short preamble with IEEE 802.11b */
451 454
452 struct crypto_blkcipher *wep_tx_tfm; 455 struct crypto_blkcipher *wep_tx_tfm;
453 struct crypto_blkcipher *wep_rx_tfm; 456 struct crypto_blkcipher *wep_rx_tfm;