diff options
author | John W. Linville <linville@tuxdriver.com> | 2007-02-17 18:26:09 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-02-17 18:26:09 -0500 |
commit | b312362be6d9155b66f3a26d9159e0a680fbd6c5 (patch) | |
tree | 52ebaad6117abf806dab4e738d01b509839f7b12 /net/ieee80211/softmac/ieee80211softmac_module.c | |
parent | bdcac1878c80b068d8e073c1691d4bd09ba9996d (diff) | |
parent | bb52a653eaef4aee877b2fa36de8699926f788bd (diff) |
Merge branch 'upstream' into upstream-jgarzik
Conflicts:
net/ieee80211/softmac/ieee80211softmac_module.c
net/ieee80211/softmac/ieee80211softmac_wx.c
Diffstat (limited to 'net/ieee80211/softmac/ieee80211softmac_module.c')
-rw-r--r-- | net/ieee80211/softmac/ieee80211softmac_module.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_module.c b/net/ieee80211/softmac/ieee80211softmac_module.c index 4f8c3ef70819..e9cdc6615ddc 100644 --- a/net/ieee80211/softmac/ieee80211softmac_module.c +++ b/net/ieee80211/softmac/ieee80211softmac_module.c | |||
@@ -265,17 +265,10 @@ void ieee80211softmac_init_bss(struct ieee80211softmac_device *mac) | |||
265 | /* Change the default txrate to the highest possible value. | 265 | /* Change the default txrate to the highest possible value. |
266 | * The txrate machine will lower it, if it is too high. | 266 | * The txrate machine will lower it, if it is too high. |
267 | */ | 267 | */ |
268 | /* FIXME: We don't correctly handle backing down to lower | 268 | if (ieee->modulation & IEEE80211_OFDM_MODULATION) |
269 | rates, so 801.11g devices start off at 11M for now. People | 269 | txrates->user_rate = IEEE80211_OFDM_RATE_24MB; |
270 | can manually change it if they really need to, but 11M is | 270 | else |
271 | more reliable. Note similar logic in | ||
272 | ieee80211softmac_wx_set_rate() */ | ||
273 | if (ieee->modulation & IEEE80211_CCK_MODULATION) { | ||
274 | txrates->user_rate = IEEE80211_CCK_RATE_11MB; | 271 | txrates->user_rate = IEEE80211_CCK_RATE_11MB; |
275 | } else if (ieee->modulation & IEEE80211_OFDM_MODULATION) { | ||
276 | txrates->user_rate = IEEE80211_OFDM_RATE_54MB; | ||
277 | } else | ||
278 | assert(0); | ||
279 | 272 | ||
280 | txrates->default_rate = IEEE80211_CCK_RATE_1MB; | 273 | txrates->default_rate = IEEE80211_CCK_RATE_1MB; |
281 | change |= IEEE80211SOFTMAC_TXRATECHG_DEFAULT; | 274 | change |= IEEE80211SOFTMAC_TXRATECHG_DEFAULT; |