You are not logged in.

#1 2009-04-13 01:45:19

root_tux_linux
Member
From: Basel, Switzerland
Registered: 2005-01-01
Posts: 53
Website

netcfg2 sets rate to 1Mb/s and IWOPTS not workieee [solved]

Hi

I have a little problem after upgrading my HTPC.
Everytime i boot my  wlan0 rate is set to 1Mb/s.
I tryed to use IWOPTS in my network profil but it doesn't work.

Can someone help me? smile


[root@Mediabox ~]# cat /etc/network.d/buffalo
CONNECTION="wireless"
INTERFACE=wlan0
SCAN="yes"
SECURITY="wpa-config"
ESSID="GNU_Linux"
KEY="not_for_your_eyes"
IP="static"
IFOPTS="192.168.1.4 netmask 255.255.255.0 broadcast 192.168.1.255"
GATEWAY=192.168.1.1
DNS1=192.168.1.1
IWOPTS="rate 54M mode managed"
WPA_OPTS="-Dwext"
WPA_CONF="/etc/wpa_supplicant.conf"
[root@Mediabox ~]#
[root@Mediabox ~]# cat /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={
        ssid="GNU_Linux"
        proto=WPA
        key_mgmt=WPA-PSK
        pairwise=CCMP
        group=CCMP
        psk="not_for_your_eyes"
}
[root@Mediabox ~]#
[root@Mediabox ~]# /etc/rc.d/net-profiles restart && iwconfig wlan0
:: buffalo down                                                                                                                                                                                             [DONE]
:: buffalo up                                                                                                                                                                                               [DONE]
wlan0     IEEE 802.11bg  ESSID:"GNU_Linux"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:1D:73:55:1E:1D
          Bit Rate=1 Mb/s   Tx-Power=14 dBm
          Retry min limit:7   RTS thr:off   Fragment thr=2352 B
          Encryption key:298D-DA3C-139F-F3D3-7B4A-F36A-0B2F-A81D [3]   Security mode:open
          Power Management:off
          Link Quality=30/100  Signal level:-58 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

[root@Mediabox ~]#

Handmade:

[root@Mediabox ~]# iwconfig wlan0 rate 54M && iwconfig wlan0 | grep Rate
          Bit Rate=54 Mb/s   Tx-Power=14 dBm
[root@Mediabox ~]#

Last edited by root_tux_linux (2009-04-15 12:30:06)

Offline

#2 2009-04-13 22:23:37

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: netcfg2 sets rate to 1Mb/s and IWOPTS not workieee [solved]

I have the rt73usb firmware as well and I'm using the rt25x00 driver, it works fine with a similar "IWOPTS" line.  Are you using the same driver, and if not you may wish to try that.  You can also try

 IWOPTS=bgscan 0 rate 54M mode managed essid YourESSIDHere

What I printed above is what I use to set my rate & other options.

Last edited by MoonSwan (2009-04-13 22:25:47)

Offline

#3 2009-04-13 22:50:10

root_tux_linux
Member
From: Basel, Switzerland
Registered: 2005-01-01
Posts: 53
Website

Re: netcfg2 sets rate to 1Mb/s and IWOPTS not workieee [solved]

MoonSwan wrote:

I have the rt73usb firmware as well and I'm using the rt25x00 driver, it works fine with a similar "IWOPTS" line.  Are you using the same driver, and if not you may wish to try that.  You can also try

 IWOPTS=bgscan 0 rate 54M mode managed essid YourESSIDHere

What I printed above is what I use to set my rate & other options.

Hi

I use this firmware

[root@Mediabox ~]# pacman -Qs rt | grep fw
local/rt2x00-rt71w-fw 1.8-3

And the driver in 2.6.29.1

[root@Mediabox ~]# pacman -Qs kernel26
local/kernel26 2.6.29.1-3 (base)
    The Linux Kernel and modules
local/kernel26-firmware 2.6.29-1 (base)
    The included firmware files of the Linux Kernel
[root@Mediabox ~]# lsmod | grep rt2
rt2x00usb              11280  1 rt73usb
rt2x00lib              31184  2 rt73usb,rt2x00usb
rfkill                 11444  2 rt2x00lib
led_class               4344  1 rt2x00lib
mac80211              177608  2 rt2x00usb,rt2x00lib
cfg80211               41184  2 rt2x00lib,mac80211
usbcore               161488  6 rt73usb,rt2x00usb,ohci_hcd,ehci_hcd,lirc_mceusb2
[root@Mediabox ~]#

Can you show me your wpa_supplicant.conf and your netprofil pls? smile

Offline

#4 2009-04-15 12:29:45

root_tux_linux
Member
From: Basel, Switzerland
Registered: 2005-01-01
Posts: 53
Website

Re: netcfg2 sets rate to 1Mb/s and IWOPTS not workieee [solved]

Fixed!

I don't know why but IWOPTS doen't work for me, but IWCONFIG does.

Offline

#5 2009-06-02 02:59:19

anarhija
Member
Registered: 2006-10-11
Posts: 4

Re: netcfg2 sets rate to 1Mb/s and IWOPTS not workieee [solved]

replace IWOPTS with IWCONFIG xD
I looked in scripts, and didnt see any IWOPTS variable processed, but IWCONFIG is, so just renamed IWOPTS into IWCONFIG and it works, only problem is that dhcp failes for wifi, but thats second problem.

Offline

Board footer

Powered by FluxBB