netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH,RFT] bcm43xx: use softmac-suggested TX rate
@ 2006-05-06  9:16 Daniel Drake
  2006-05-19 18:08 ` John W. Linville
  0 siblings, 1 reply; 11+ messages in thread
From: Daniel Drake @ 2006-05-06  9:16 UTC (permalink / raw)
  To: netdev

Can a bcm43xx user please test this. It uses the new txrate stuff found in
the wireless-dev tree.

Signed-off-by: Daniel Drake <dsd@gentoo.org>

Index: linux/drivers/net/wireless/bcm43xx/bcm43xx_xmit.c
===================================================================
--- linux.orig/drivers/net/wireless/bcm43xx/bcm43xx_xmit.c
+++ linux/drivers/net/wireless/bcm43xx/bcm43xx_xmit.c
@@ -296,11 +296,14 @@ void bcm43xx_generate_txhdr(struct bcm43
 	u16 control = 0;
 	u16 wsec_rate = 0;
 	u16 encrypt_frame;
+	u16 ftype = WLAN_FC_GET_TYPE(le16_to_cpu(wireless_header->frame_ctl));
+	int is_mgt = (ftype == IEEE80211_FTYPE_MGMT) != 0;
 
 	/* Now construct the TX header. */
 	memset(txhdr, 0, sizeof(*txhdr));
 
-	bitrate = bcm->softmac->txrates.default_rate;
+	bitrate = ieee80211softmac_suggest_txrate(bcm->softmac,
+		is_multicast_ether_addr(wireless_header->addr1), is_mgt);
 	ofdm_modulation = !(ieee80211_is_cck_rate(bitrate));
 	fallback_bitrate = bcm43xx_calc_fallback_rate(bitrate);
 	fallback_ofdm_modulation = !(ieee80211_is_cck_rate(fallback_bitrate));

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-06-05 20:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-06  9:16 [PATCH,RFT] bcm43xx: use softmac-suggested TX rate Daniel Drake
2006-05-19 18:08 ` John W. Linville
2006-05-19 18:44   ` Daniel Drake
2006-05-19 18:32     ` Michael Buesch
2006-06-05 18:51       ` John W. Linville
2006-06-05 19:15         ` Michael Buesch
2006-06-05 19:17           ` John W. Linville
2006-06-05 19:28             ` Michael Buesch
2006-06-05 19:42               ` John W. Linville
2006-06-05 19:48               ` Daniel Drake
2006-06-05 20:00                 ` John W. Linville

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).