diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2007-09-14 11:10:25 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:49:27 -0400 |
commit | b708e610622cff07f4374a2b4410884f964b8489 (patch) | |
tree | 77aee49d680178df819437a35ba23cce9ad14e18 /net/mac80211/util.c | |
parent | d4e46a3d9869563c6210b01bb651c40cbe65da80 (diff) |
[MAC80211]: remove turbo modes
This patch removes all mention of the atheros turbo modes that
can't possibly work properly anyway since in some places we don't
check for them when we should.
I have no idea what the iwlwifi drivers were doing with these but
it can't possibly have been correct.
Cc: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index c970996ba6f9..29c0a0e1f52c 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -93,11 +93,6 @@ void ieee80211_prepare_rates(struct ieee80211_local *local, | |||
93 | if (rate->rate == 10 || rate->rate == 20) | 93 | if (rate->rate == 10 || rate->rate == 20) |
94 | rate->flags |= IEEE80211_RATE_BASIC; | 94 | rate->flags |= IEEE80211_RATE_BASIC; |
95 | break; | 95 | break; |
96 | case MODE_ATHEROS_TURBO: | ||
97 | if (rate->rate == 120 || rate->rate == 240 || | ||
98 | rate->rate == 480) | ||
99 | rate->flags |= IEEE80211_RATE_BASIC; | ||
100 | break; | ||
101 | case MODE_IEEE80211G: | 96 | case MODE_IEEE80211G: |
102 | if (rate->rate == 10 || rate->rate == 20 || | 97 | if (rate->rate == 10 || rate->rate == 20 || |
103 | rate->rate == 55 || rate->rate == 110) | 98 | rate->rate == 55 || rate->rate == 110) |
@@ -116,8 +111,6 @@ void ieee80211_prepare_rates(struct ieee80211_local *local, | |||
116 | if (rate->rate == 10) | 111 | if (rate->rate == 10) |
117 | rate->flags |= IEEE80211_RATE_MANDATORY; | 112 | rate->flags |= IEEE80211_RATE_MANDATORY; |
118 | break; | 113 | break; |
119 | case MODE_ATHEROS_TURBO: | ||
120 | break; | ||
121 | case MODE_IEEE80211G: | 114 | case MODE_IEEE80211G: |
122 | if (rate->rate == 10 || rate->rate == 20 || | 115 | if (rate->rate == 10 || rate->rate == 20 || |
123 | rate->rate == 55 || rate->rate == 110 || | 116 | rate->rate == 55 || rate->rate == 110 || |
@@ -273,8 +266,7 @@ int ieee80211_frame_duration(struct ieee80211_local *local, size_t len, | |||
273 | * DIV_ROUND_UP() operations. | 266 | * DIV_ROUND_UP() operations. |
274 | */ | 267 | */ |
275 | 268 | ||
276 | if (local->hw.conf.phymode == MODE_IEEE80211A || erp || | 269 | if (local->hw.conf.phymode == MODE_IEEE80211A || erp) { |
277 | local->hw.conf.phymode == MODE_ATHEROS_TURBO) { | ||
278 | /* | 270 | /* |
279 | * OFDM: | 271 | * OFDM: |
280 | * | 272 | * |
@@ -288,7 +280,6 @@ int ieee80211_frame_duration(struct ieee80211_local *local, size_t len, | |||
288 | * 802.11g - 19.8.4: aSIFSTime = 10 usec + | 280 | * 802.11g - 19.8.4: aSIFSTime = 10 usec + |
289 | * signal ext = 6 usec | 281 | * signal ext = 6 usec |
290 | */ | 282 | */ |
291 | /* FIX: Atheros Turbo may have different (shorter) duration? */ | ||
292 | dur = 16; /* SIFS + signal ext */ | 283 | dur = 16; /* SIFS + signal ext */ |
293 | dur += 16; /* 17.3.2.3: T_PREAMBLE = 16 usec */ | 284 | dur += 16; /* 17.3.2.3: T_PREAMBLE = 16 usec */ |
294 | dur += 4; /* 17.3.2.3: T_SIGNAL = 4 usec */ | 285 | dur += 4; /* 17.3.2.3: T_SIGNAL = 4 usec */ |