LinHES Forums

R5C7 - Setup rt2500 wifi card - WPAPSK
Page 1 of 1

Author:  arnljot [ Thu Jul 13, 2006 7:38 am ]
Post subject:  R5C7 - Setup rt2500 wifi card - WPAPSK

The distro used: KnoppMyth R5C7
The wifi card used: CNet CWP-854 Wireless-G PCI Adapter
Based on the WIKI: rt2500 howto
    The steps I did
  • In the serialmonkey wiki they ask you to do the steps below, these didn't do anything on my system, as module assistant obviously were installed.
    $ apt-get apt-get install module-assistant
    $module-assistant prepare
  • When I first tried to "apt-get" the source code it failed, so I inserted a new sid source in /etc/apt/sources.list
    deb unstable main contrib non-free
  • Then it was time to get the sources, install them. And compile them.
    $ apt-get update
    $ apt-get install rt2500-source
    $ module-assistant auto-install rt2500-source
  • The wiki now says that the module will be loaded on your system, with me it wasn't so I did the following to make it load, so I didn't have to reboot.
    $ modprobe rt2500
    $ ifconfig -a
    $ echo rt2500 >> /etc/modules
  • Now it was time to get it up with WPAPSK, so first - to the wireless tools!
    $ apt-get install wireless-tools
  • The card was installed as eth2 on my system, and I didn't like the idea of ifrename. So I skipped that, and configured and tested the card:
    $ ifconfig eth2 up
    $ iwconfig eth2 channel 6
    $ iwconfig eth-wifi essid youressidname
    $ iwpriv eth2 set AuthMode=WPAPSK
    $ iwpriv eth2 set EncrypType=TKIP
    $ iwpriv eth2 set WPAPSK="wireless password"
    $ pump -i eth2
  • The card worked, and it got an ip and all. Time to make the setup stick. It was a little hard because the rt2500 is quite odd. To manage to configure the chip during boot it has to be brought up and down a few times before settings will "take hold". (see here ubuntu RT2500. So the edited /etc/network/interfaces looks like this:
    auto eth2
    iface eth2 inet dhcp
      pre-up modprobe rt2500
      pre-up ifconfig eth1 up
      pre-up ifconfig eth1 down
      pre-up ifconfig eth1 up
      pre-up ifconfig eth1 down
      pre-up iwconfig eth1 mode "Managed"
      pre-up iwconfig eth2 essid youressidname
      pre-up iwpriv eth1 set AuthMode=WPAPSK
      pre-up iwpriv eth1 set EncrypType=TKIP
      pre-up iwpriv eth2 set WPAPSK="wireless password"
      pre-up ifconfig eth1 up

That was it!

Author:  arnljot [ Fri Jul 14, 2006 3:26 am ]
Post subject:  alternative /etc/network/interfaces

This is from the forums, this interfaces file stanza for the Ralink chip is a bit neater. I haven't tested it, but it's reported working by Debian users on the
auto eth2
iface eth2 inet dhcp
pre-up cat /dev/null > /var/log/syslog
pre-up modprobe rt2500 debug=1
post-down rmmod rt2500
wireless-mode Managed
wireless-essid youressidname
up iwpriv eth2 set EncrypType=TKIP
up iwpriv eth2 set AuthMode=WPAPSK
up iwpriv eth2 set WPAPSK="wireless password"

This stanza loads the module with "debug=1" in case you need support from the serialmonkey team, just remove this for everyday use. And it unloads the driver after you pull the interface down with "ifdown eth2".

Author:  arnljot [ Fri Jul 14, 2006 4:25 am ]
Post subject:  rt2500 advanced settings

Here are the advanced setting you can do on the rt2500, with explanations. The explanations are copy/pasted from the serialmonkey forum (a bit down in this post
  • AuthMode {OPEN,SHARED,WPAPSK} Set Authentication mode
    $ iwpriv eth2 set AuthMode=WPAPSK
  • TxRate {0~12} Set TxRate
    $ iwpriv eth2 set TxRate=12

    0:Auto, 1:1Mbps, 2:2Mbps, 3:5.5Mbps, 4:11Mbps,
    5:6Mbps, 6:9Mbps, 7:12Mbps, 8:18Mbps, 9:24Mbps,
    10:36Mbps, 11:48Mbps, 12:54Mbps

    The default setting is Auto. The range is from 1 to 54Mbps.
    The rate of data transmission should be set depending on the speed of your wireless network. You can select from a range of transmission speeds, or keep the default setting, Auto, to have the Router automatically use the fastest possible data rate and enable the Auto-Fallback feature. Auto-Fallback will negotiate the best possible connection speed between the Router and a wireless client.
  • BGProtection {0~2} Set 11B/11G Protection
    $ iwpriv eth2 set BGProtection=2

    0:Auto, 1:Always on, 2:Always off

    The default value is set to Disabled. When set to Auto, a protection mechanism will ensure that your Wireless-B devices will connect to the Wireless-G Router when many Wireless-G devices are present. However, performance of your Wireless-G devices may be decreased.
  • TxBurst {0,1} Set TxBurst Enable or Disable
    $ iwpriv eth2 set TxBurst=1

    0:Disable, 1:Enable

    Allows packet bursting which will increase overall network speed.
  • RTSThreshold {1~2347} Set RTS Threshold
    $ iwconfig eth2 RTSThreshold 2347

    This value should remain at its default setting of 2347. The range is 0-2347 bytes.

    Should you encounter inconsistent data flow, only minor modifications are recommended. If a network packet is smaller than the preset RTS threshold size, the RTS/CTS mechanism will not be enabled. The Router sends Request to Send (RTS) frames to a particular receiving station and negotiates the sending of a data frame. After receiving an RTS, the wireless station responds with a Clear to Send (CTS) frame to acknowledge the right to begin transmission.
  • FragThreshold {256~2346} Set Fragment Threshold
    $ iwconfig eth2 FragThreshold 2346

    This value should remain at its default setting of 2346. The range is 256-2346 bytes. It specifies the maximum size for a packet before data is fragmented into multiple packets. If you experience a high packet error rate, you may slightly increase the Fragmentation Threshold. Setting the Fragmentation Threshold too low may result in poor network performance. Only minor modifications of this value are recommended.
  • ApClient {0,1} Set ApClient mode
    $ iwpriv eth2 set ApClient=1

    Creates a separate virtual network for your wireless network. When this feature is enabled, each of your wireless client will be in its own virtual network and will not be able to communicate with each other. You may want to utilize this feature if you have many guests that frequent your wireless network.
  • TxPreamble {0~2} Set TxPreamble
    $ iwpriv eth2 set TxPreamble=1

    0:Preamble Long, 1:Preamble Short, 2:Auto

    Preamble is the first subfield of PPDU, which is the appropriate frame format for transmission to PHY(Physical Layer). The Short Preamble option improves throughput performance.
  • CountryRegion {0~7} Set country region
    $ iwpriv eth2 set CountryReqion=2

    0: use 1 ~ 11 Channel
    1: use 1 ~ 11 Channel
    2: use 1 ~ 13 Channel (Europe)
    3: use 10, 11 Channel
    4: use 10 ~ 13 Channel
    5: use 14 Channel
    6: use 1 ~ 14 Channel (Japan)
    7: use 3 ~ 9 Channel

    The US uses channels 1 ~ 11, but I'm not sure if they use 0 or 1

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group