-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Buesch wrote:
> Hi John,
> 
> Sorry, took a little bit longer than expected, but here it is. :)
> Please queue for 2.6.18.
> 
> --
> 
> From: Daniel Drake <[EMAIL PROTECTED]>
> 
> Use Softmac-suggested TX ratecode:
> ieee80211softmac_suggest_txrate()
> 
> Signed-off-by: Daniel Drake <[EMAIL PROTECTED]>
> Signed-off-by: Michael Buesch <[EMAIL PROTECTED]>
> 
> Index: wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_xmit.c
> ===================================================================
> --- wireless-2.6.orig/drivers/net/wireless/bcm43xx/bcm43xx_xmit.c     
> 2006-06-14 16:53:50.000000000 +0200
> +++ wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_xmit.c  2006-06-14 
> 17:44:23.000000000 +0200
> @@ -296,11 +296,14 @@
>       u16 control = 0;
>       u16 wsec_rate = 0;
>       u16 encrypt_frame;
> +     const u16 ftype = 
> WLAN_FC_GET_TYPE(le16_to_cpu(wireless_header->frame_ctl));
> +     const int is_mgt = (ftype == IEEE80211_FTYPE_MGMT);
>  
>       /* 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));
> 

Well I decided to take the plunge and test this for you all. Only
problem is it fails to compile

  CC      net/ieee80211/softmac/ieee80211softmac_io.o
net/ieee80211/softmac/ieee80211softmac_io.c: In function
'ieee80211softmac_send_mgt_frame':
net/ieee80211/softmac/ieee80211softmac_io.c:463: error: too many
arguments to function 'ieee80211_tx_frame'
make[3]: *** [net/ieee80211/softmac/ieee80211softmac_io.o] Error 1
make[2]: *** [net/ieee80211/softmac] Error 2
make[1]: *** [net/ieee80211] Error 2
make: *** [net] Error 2

I will look into it tomorrow night unless once of you get around to it
before then.

Jory
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEki3iGDfjNg8unQIRAhMzAJ4rvfbtJS2FiXyOMkf9lVI41QYDwQCgrmus
K9z8D/x5HFCi1dGBMaF+fb0=
=u26i
-----END PGP SIGNATURE-----
_______________________________________________
Bcm43xx-dev mailing list
[email protected]
http://lists.berlios.de/mailman/listinfo/bcm43xx-dev

Reply via email to