OpenWrt Forum Archive

Topic: How to set basic bitrate?

The content of this topic has been archived on 20 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hallo,

for testing purposes at university I have to set the bastic bitrate to 1 mbit (11b-mode) on my wireless interface.

How do to this?


I'm using OpenWrt Backfire 10.03.1-RC6 on TP-Link WR1043ND.

In the webinteface it seem that there I can't set this option. So I try to config the wireless file in /etc/config/


What ist the correct syntax to set the basic bitrate at 1 mbit? I tried the following. But that does not work.

option 'basic_rate' '1b'


Thanks is advance.

Jonny



P.S. Here the rest of the configuration of the wifi device.
config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'macaddr' 'f4:ec:38:e9:7d:4a'
        list 'ht_capab' 'SHORT-GI-40'
        list 'ht_capab' 'DSSS_CCK-40'
        option 'channel' '1'
        option 'txpower' '0'
        option 'country' 'DE'
        option 'hwmode' '11b'
#      option 'basic_rate' '1b'

Its given in kbit/s, like mcast_rate:

option basic_rate '1000 2000 5500 11000'

Not sure if hwmode 11b is really valid, try 11g. Its mainly used to select the band in this context.

Thanks for your quick reply.

jow wrote:

Its given in kbit/s, like mcast_rate:

option basic_rate '1000 2000 5500 11000'

Not sure if hwmode 11b is really valid, try 11g. Its mainly used to select the band in this context.

Ok I'll test with 11g.  Now I try to limit the rate to 6 Mbit (lowest rate in 11g) but with the option basic_rate it doesn't work.
Maybe it is the false option. How to set the maximum rate to 6 mbit?

I also tried this options.

option 'rate' '6000'
option 'maxrate' '6000'

This option I set at the Access Point and on the station. Both Openwrt on a TP-Link. But in webinterface it shows still 54mbit. :-( Also when I measure the throughput of this wireless link. It is more than 6 mbit...

Is it not possible to limit the rate to 6mbit? Or where is my mistake?

Greetings
Jonny

P.S. Here my wireless config file I tested on both AP and client simultaneously. (but not with the same macaddress ;-)

config 'wifi-device' 'radio0'
        option 'type' 'mac80211'
        option 'macaddr' 'f4:ec:38:e9:7d:4a'
        list 'ht_capab' 'SHORT-GI-40'
        list 'ht_capab' 'DSSS_CCK-40'
        option 'channel' '1'
        option 'txpower' '0'
        option 'country' 'DE'
        option 'hwmode' '11g'
        option 'basic_rate' '6000'
        option 'rate' '6000'
        option 'maxrate' '6000'

(Last edited by jonny17 on 6 Jan 2012, 00:17)

The discussion might have continued from here.