iwconfig rate

wasik wasik
Sun Oct 10 07:03:01 PDT 2004


Hi,
I'm using hostap-driver version 0.2.5 with kernel 2.6.3. and I'm trying to use iwconfig wlan2 rate 5.5M to lower rate on noisy link.

When a connected client has rate fixed to 11M hostap shows his tx_rate=0
cat /proc/net/hostap/wlan2/00\:60\:b3...
...
tx_rate=0
tx[1M]=17018
tx[2M]=0
tx[5.5M]=0
tx[11M]=668826
rx[1M]=0
rx[2M]=1
rx[5.5M]=0
rx[11M]=659778
...

Also when switching rate hostap does not restore value of basic_rates.

After reboot:
[root at kralak root]# iwpriv wlan0 getbasic_rates
<mapping sub-ioctl getbasic_rates to cmd 0x8BE1-32>
wlan0     getbasic_rates:3
[root at kralak root]# iwpriv wlan0 getoper_rates
<mapping sub-ioctl getoper_rates to cmd 0x8BE1-33>
wlan0     getoper_rates:15

Setting to fixed rate:
[root at kralak root]# iwconfig wlan0 rate 11M
[root at kralak root]# iwpriv wlan0 getbasic_rates
<mapping sub-ioctl getbasic_rates to cmd 0x8BE1-32>
wlan0     getbasic_rates:8
[root at kralak root]# iwpriv wlan0 getoper_rates
<mapping sub-ioctl getoper_rates to cmd 0x8BE1-33>
wlan0     getoper_rates:8

Restoring back to automatic rate:
[root at kralak root]# iwconfig wlan0 rate 11M auto
[root at kralak root]# iwpriv wlan0 getbasic_rates
<mapping sub-ioctl getbasic_rates to cmd 0x8BE1-32>
wlan0     getbasic_rates:8
[root at kralak root]# iwpriv wlan0 getoper_rates
<mapping sub-ioctl getoper_rates to cmd 0x8BE1-33>
wlan0     getoper_rates:15
[root at kralak root]#

You see, basic_rates are now only 11MBit/s, which is not very good.

Jan Wasserbauer





More information about the Hostap mailing list