Thanks for the clarification.  The basic rates vs. supported rates were a
bit ambiguous to me.  My underlying motivation was to disable lower 2.4GHz
bitrates, i.e. 1 through 5.5Mbit/s, to conserve airtime.  Is such a hotplug
script nevertheless the best to disable such low rates?  (Or likewise any
patch to allow specification of supported rates via UCI?)


On Fri, Mar 7, 2014 at 12:24 PM, Felix Fietkau <n...@openwrt.org> wrote:

> On 2014-03-04 18:20, Ben West wrote:
> > To follow up, here it seems that setting the basic_rate option in
> > /etc/config/wireless under AA r39154 has no effect on the rate mask, at
> > least when queried via
> > /sys/kernel/debug/ieee80211/phy0/netdev:wlan0/rc_rateidx_mask_2ghz
> >
> > As a work-around, I'm using this hotplug script in /etc/hotplug.d/iface
> > to disable the slower legacy 2.4GHz rates:
> >
> > #!/bin/sh
> >
> > . /lib/functions.sh
> > . /lib/functions/network.sh
> >
> > # Disable legacy 2.4GHz low bitrates
> > if [ ifup = "$ACTION" ]; then
> >     case "$DEVICE" in
> >         wlan*)
> >             logger setting bitrate for device "$DEVICE" on interface
> > "$INTERFACE"
> >             iw "$DEVICE" set bitrates legacy-2.4 6 9 11 12 18 24 36 48 54
> >         ;;
> >         br-*)
> >             #Bridged interfage, check if any wifi interface is member
> >             for i in $(ls /sys/class/net/$DEVICE/brif); do
> >                 case "$i" in
> >                     wlan*)
> >                         logger setting bitrate for device "$i" on
> > interface "$INTERFACE"
> >                         iw "$i" set bitrates legacy-2.4 6 9 11 12 18 24
> > 36 48 54
> >                     ;;
> >                 esac
> >             done
> >         ;;
> >     esac
> > fi
> >
> > Should values specified as basic_rate appear in the wifi interface's
> > rate mask?
> No, the set of basic rates is different from the set of supported (or
> used) rates - basic rates are considered mandatory, but do not describe
> the entire rate set.
> Feel free to send a patch to allow configuring supported rates.
>
> - Felix
>



-- 
Ben West
http://gowasabi.net
b...@gowasabi.net
314-246-9434
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to