Search Linux Wireless

Re: [RFC/T #2] mac80211: Implementation of SIOCSIWRATE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael Wu wrote:
On Sunday 27 May 2007 18:16, Larry Finger wrote:
From: mabbas <mabbas@xxxxxxxxxxxxxxx>

The WEXT ioctl SIOCSIWRATE is not implemented in mac80211. This patch
adds the missing routine. It supports the 'auto' keyword, fixed rates,
and the combination of 'auto' and a fixed rate to select an upper bound.

Signed-off-by: mabbas <mabbas@xxxxxxxxxxxxxxx>
Full name please.

I'm working on getting his name.

Index: wireless-dev/net/mac80211/ieee80211_i.h
===================================================================
--- wireless-dev.orig/net/mac80211/ieee80211_i.h
+++ wireless-dev/net/mac80211/ieee80211_i.h
@@ -269,6 +269,7 @@ struct ieee80211_if_sta {
 	unsigned long ibss_join_req;
 	struct sk_buff *probe_resp; /* ProbeResp template for IBSS */
 	u32 supp_rates_bits;
+	u32 restricted_tx_rates; /* bitmap of user restricted tx rate */

No. max_ratectrl_rateidx and force_unicast_rateidx can do everything you need. Look more carefully at how the rate control code works with those two fields. The only file that needs to be patched to add support for this is ieee80211_ioctl.c because this feature was always supported. (with non-standard prism2/hostap ioctls)

I think I understand now. I could see how the two existing variables can be used for the maximum rate, but not for the range of rates implied when the 'auto' keyword of the iwconfig command is used. Now I see that sta->supp_rates and sdata->u.sta.supp_rates_bits can be used for the necessary bitmaps. I was reluctant to destroy them, but now I see that they will be rebuilt with later calls to iwconfig.

I am testing the new version and will be sending it along later.

Larry



-
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux