Wireless Settings
Wireless Transfer Speed
Wireless Configuration Scripts
WIFI Fequencies

Wireless Settings

How do I change the settings of a wireless card?

Here are some config commands that you can use. You would need to tailor the exact settings to your network.

    iwconfig wlan0 essid Crossbow
    iwconfig wlan0 mode Managed
    iwconfig wlan0 channel 3
    iwconfig wlan0 enc 1234-abcd-1234-abcd-1234-abcd-12
    ifconfig wlan0 netmask broadcast


How do you change the WiFi speed?

When the system comes up and a card is plugged in, the card is set at 2Mbs. On the Stargate enter

iwconfig wlan0 key off
iwconfig wlan0 rate 11M fixed

If you type iwconfig at this point it will still report 2Mbs. Ping the Stargate from another system. Then do an iwconfig on the Stargate. It will report 11Mbs.

Thanks! I think part of the problem was the weird had-to-ping first thing


Wireless Transfer Speed

What are the wireless tranfer rates on a Starage?

I executed a simple performance test today. I scp'ed 10Mbyte files between a Zcomax card and a Netgear card. Both on Stargates.

The original hostap drivers (0.0.3) support setting the power level. The new hostap drivers (0.1.2) may not support setting the power level. I'll investigate this further.


Wireless Configuration Scripts

I wrote a script to bring wireless connection up. Where should I place it so that it can be run automatically during boot up?

Look at /etc/pcmcia/wireless.opts


Could anyone give me a brief tutorial how to config this wifi card? which files need to be modified? I guess it uses hostap_cs driver module. but couldnt make it work.

Which part didn't work? Here are some helpful diagnostics:

cardctl ident

If you supply the output of those, we will be better able to help you...

If the card is detected by cardctl and lsmod says is loaded, then you will want to check your /etc/pcmcia/wireless.opts and /etc/pcmcia/network.opts files for the correct configuration information like static or dhcp, preferred ssid, and such.

The Wireless Tools for Linux web page and David Hinds's PCMCIA documentation are endless warehouses of information about this.

For example, suppose you have a NetGear MA701 802.11b wireless card plugged into your Stargate. You will get the following results with cardctl:

    stargate:pcmcia# cardctl ident
    Socket 0:

    Socket 1:
      product info: "NETGEAR", "MA701 Wireless CF Card", ""
      manfid: 0xd601, 0x0002
      function: 6 (network)

Notice the manufacture's id. This will match the following lines in hostap_cs.conf:

    card "Fulbond Airbond XI-300B"
       version " ", "IEEE 802.11 Wireless LAN/PC Card"
       manfid 0xd601, 0x0002
       bind "hostap_cs"

Now watch the card manager log when the card is plugged in. It should contain:

    cardmgr[607]: socket 1: Fulbond Airbond XI-300B
    cardmgr[607]: executing: 'modprobe hostap_crypt'
    cardmgr[607]: + modprobe: Can't locate module hostap_crypt
    cardmgr[607]: modprobe exited with status 255
    cardmgr[607]: module /lib/modules/2.4.19-rmk7-pxa2-star/pcmcia/hostap_crypt.o necardmgr[607]: executing: 'modprobe hostap'
    cardmgr[607]: executing: 'modprobe hostap_cs'
    hostap_cs: 0.1.3 - 2004-02-08 (Jouni Malinen )

Notice that  the hostap_cs module is being installed. You can verify this with lsmod.

    stargate:pcmcia# lsmod
    Module                  Size  Used by
    hostap_cs              40208   0
    hostap                 81120   0  [hostap_cs]

If you want to hook up the MA701 in managed mode, this is how you do it. (Currently the cards are configured for ad hoc.) I used this configuration with a Netgear MR314 Wireless Router running DHCP.


    if [ -f /etc/wireless-scheme ]; then
       #SCHEME=`cat /etc/wireless-scheme`
       . /etc/wireless-scheme

    case "$SCHEME,$ADDRESS" in
        RATE="2M fixed"
        IWCONFIG="txpower 30mW"
        #RATE="2M fixed"
        #IWCONFIG="txpower 30mW"

And make sure that network.opts has something like the following..

        # Use DHCP (via /sbin/dhcpcd, /sbin/dhclient, or /sbin/pump)? [y/n]
        # If you need to explicitly specify a hostname for DHCP requests
        # Host's IP address, netmask, network address, broadcast address

When you enter the iwconf command you will see the following.

    stargate:pcmcia# iwconfig
    lo        no wireless extensions.

    eth0      no wireless extensions.

    wlan0     IEEE 802.11b  ESSID:"PLATX"  Nickname:"stargate"
              Mode:Managed  Frequency:2.412GHz  Access Point: 00:30:AB:1E:C6:2F
              Bit Rate:11Mb/s   Sensitivity=1/242700000
              Retry min limit:8   RTS thr:off   Fragment thr:off
              Encryption key:off
              Power Management:off
              Link Quality:92/1  Signal level:-40 dBm  Noise level:-93 dBm
              Rx invalid nwid:0  Rx invalid crypt:68  Rx invalid frag:0
              Tx excessive retries:0  Invalid misc:1422   Missed beacon:0

And ifconfig will give you something like the following.

    wlan0     Link encap:Ethernet  HWaddr 00:09:5B:91:2E:85
              inet addr:  Bcast:  Mask:
              RX packets:9 errors:0 dropped:0 overruns:0 frame:0
              TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:100
              RX bytes:2144 (2.0 KiB)  TX bytes:3190 (3.1 KiB)

For add hoc mode you would want to have something like the following in wireless.opts. (The MAC address of my NetGear card is 00:09:5B:91:2E:85.)

    case "$ADDRESS" in

And something like the following in network.opts.

    case "$ADDRESS" in


Jasmeet has a nice website that gives the details on how to do this (although this is for the Netgear MA401, the procedure is similar for the MA701). Look at this URL:



WIFI Frequecies

Channel Frequency
1 2.412
2 2.417
3 2.422
4 2.427
5 2.432
6 2.437
7 2.442
8 2.447
9 2.452
10 2.457
11 2.462
12 2.467
13 2.472
14 2.484


I wonder if there is someone being familiar with AODV. Stargate is supposed to support kernel_AODV, but i have not figured out how to deal with it. I update stargate to release 7.2 using compiled image, however when I login in, I do not find kernel_AODV module( use "lsmod" command). Would you please give me some detailed instructions? Thanks a lots.

Below is all the help I can find right now.

AODV isn't loaded by default. In order to get it running, the user needs to type aodv_init at the command prompt. Once it loads, the user can see the surrounding nodes by typing aodv_info.tcl. They can unload AODV by typing aodv_stop. Unfortunately, I don't have access to a stargate at this moment, so I can't verify the exact spelling of the commands, but if the user types aodv and then hit's tab, it should bring up a list of commands. Also, I've only tried AODV up to 7.1, so I don't know how well (if) it's working in 7.2.

Hopefully, this can get you started but you may need to do some digging.