diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2007-02-13 19:58:03 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-02-14 15:45:05 -0500 |
commit | bb52a653eaef4aee877b2fa36de8699926f788bd (patch) | |
tree | 7cbe728f22ea6c45d675f14ca1fbfccd4b568ddc /net/ieee80211/softmac/ieee80211softmac_wx.c | |
parent | a5d79d1e4fa58e12a37c91963fc071d811d2cffd (diff) |
[PATCH] ieee80211softmac: Fix setting of initial transmit rates
There is a bug in ieee80211softmac that always sets the user rate
to 11Mbs, no matter the capabilities of the device. This bug was
probably beneficial as long as the bcm43xx cards were rate limited;
however, most are now capable of relatively high speeds. This patch
fixes that bug and eliminates an assert that is no longer needed.
Once the cards are capable of full OFDM speeds, the 24 Mbs rate will
be changed to 54 Mbs.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211/softmac/ieee80211softmac_wx.c')
-rw-r--r-- | net/ieee80211/softmac/ieee80211softmac_wx.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_wx.c b/net/ieee80211/softmac/ieee80211softmac_wx.c index fa2f7da606a9..89c83fa9aacb 100644 --- a/net/ieee80211/softmac/ieee80211softmac_wx.c +++ b/net/ieee80211/softmac/ieee80211softmac_wx.c | |||
@@ -177,15 +177,10 @@ ieee80211softmac_wx_set_rate(struct net_device *net_dev, | |||
177 | int err = -EINVAL; | 177 | int err = -EINVAL; |
178 | 178 | ||
179 | if (in_rate == -1) { | 179 | if (in_rate == -1) { |
180 | /* FIXME: We don't correctly handle backing down to lower | 180 | if (ieee->modulation & IEEE80211_OFDM_MODULATION) |
181 | rates, so 801.11g devices start off at 11M for now. People | 181 | in_rate = 24000000; |
182 | can manually change it if they really need to, but 11M is | ||
183 | more reliable. Note similar logic in | ||
184 | ieee80211softmac_wx_set_rate() */ | ||
185 | if (ieee->modulation & IEEE80211_CCK_MODULATION) | ||
186 | in_rate = 11000000; | ||
187 | else | 182 | else |
188 | in_rate = 54000000; | 183 | in_rate = 11000000; |
189 | } | 184 | } |
190 | 185 | ||
191 | switch (in_rate) { | 186 | switch (in_rate) { |