OpenWrt Forum Archive

Topic: wireless client mode

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

OK guys, another one about wireless client mode.
I've got an existing AP (commercial AP-2000 v2.5.2), which is running with 128-bit encryption, and is providing 802.11B on channel 10.
I've checked and my laptop can join the AP no problem with the encryption key.

I'm now trying to get my WRT54G to connect.
firmware_version=v2.02.7
running whiterussian_rc2

I've separated the bridge, so the wireless and lan ports are separated, so I have the LAN ports connected to my wired lan, but cannot get the wireless portion to make a connection, or even see the wireless network. I've followed the ClientHowTo and many forum advice/tutorials, to no avail. Can somebody spot the problem here?

iwconfig eth1
eth1      IEEE 802.11-DS  ESSID:""  
          Mode:Repeater  Frequency:2.457 GHz  Tx-Power:31 dBm   
          RTS thr=2347 B   Fragment thr=2346 B   
          Encryption key:6D65-6C69-7373-6162-6574-6163-6F

root@OpenWrt:/etc/init.d# wl join "AB-NETB" key 6d656c6973736162657461636f
root@OpenWrt:/etc/init.d# wl status
eth1: Invalid argument
Not associated. Last associated with SSID: ""

root@OpenWrt:/etc/init.d# wl ssid "AB-NETB"
Setting SSID "AB-NETB"
root@OpenWrt:/etc/init.d# wl ssid
Current SSID: ""

root@OpenWrt:~# wl scan
root@OpenWrt:~# wl scanresults

So, I've tried using wl to join the network, which doesn't appear to do anything, scan doesn't show and results, and manually setting the ssid appears to get 'forgotten' straight after setting it.

Here are the wl settings stored in nvram:

root@OpenWrt:/etc/init.d# nvram show |grep wl
size: 7200 bytes (25568 left)
wl_radius_port=1812
wl_mac_deny=
wl0_net_mode=mixed
wl0_frameburst=off
wl0_wep_buf=
wl0_macmode1=disabled
wl_phytypes=
wl0_infra=1
wl0_country_code=UK
wl_infra=1
wl_radius_ipaddr=
wl0_ifname=eth1
wl0_mode=wet
wl0_gmode=1
wl_active_add_mac=0
wl_gmode=0
wl0_wep_last=
wl0_dtim=1
wl0_ssid=AB-NETB
wl_plcphdr=long
wl_macmode=disabled
wl0_key1=6d656c6973736162657461636f
wl_phytype=g
wl0id=0x4320
wl0_key2=
wl_lazywds=1
wl0_key3=
wl0_key4=
wl_auth_mode=disabled
wl_wpa_psk=
wl_mode=sta
wl0_plcphdr=long
wl0_rate=0
wl0_closed=1
wl_wpa_gtk_rekey=3600
wl0_macmode=disabled
wl0_radioids=BCM2050
wl0_phytype=g
wl0gpio2=0
wl0_lazywds=1
wl0gpio3=0
wl0_antdiv=-1
wl_dtim=1
wl_ssid=linksys
wl0_mac_list=
wl_passphrase=
wl_key1=775A32E1083F65357E895153A1
wl_key2=
wl0_unit=0
wl_key3=
wl_country_code=UK
wl_key4=
wl_hwaddr=
wl_active_mac=
wl_net_mode=mixed
wl_rate=0
wl_macmode1=disabled
wl0_mac_deny=
wl0_radius_port=1812
wl0_auth=0
wl0_radius_ipaddr=
wl_country=Worldwide
wl_ofdm= 0
wl_rateset=default
wl_wep_bit=128
wl_radius_key=
wl_unit=0
wl0_phytypes=g
wl0_frag=2346
wl0_wep=on
wl0_wet=1
wl0_country=Worldwide
wl_atten_bb=3
wl_wds=
wl0_rateset=default
wl0_wep_bit=128
wl_auth=0
wl_wep_last=
wl_cck= 28
wl_frameburst=off
wl0_passphrase=
wl0_rts=2347
wl_ifname=
wl_wep=enabled
wl_gmode_protection=off
wl0_wpa_gtk_rekey=3600
wl_frag=2346
wl_wep_gen=
wl0_key=1
wl0_active_mac=
wl_maclist=
wl_atten_radio=4
wl_radioids=
wl0_radio=1
wl_corerev=
wl_channel=10
wl0_bcn=100
wl_radio=1
wl0_hwaddr=00:12:17:BD:6B:C3
wl0_wep_gen=
wl0_gmode_protection=off
wl0_maclist=
wl_rts=2347
wl_tssi_result= 28
wl_mac_list=
wl0_radius_key=
wl0_corerev=7
wl_key=1
wl0_channel=10
wl_atten_ctl=48
wl0_auth_mode=disabled
wl_closed=0
wl_delay=1
wl_bcn=100
wl_wep_buf=
wl_antdiv=-1

Can anyone spot where i've gone wrong as I'm going round in circles!!
Many thanks.

Andy.

OK, just to add to this, I'd assumed i'd screwed up the NVRAM settings, so I tried an erase and reboot. No change, so I also then swapped back to the Linksys firmware, configured the unit via the linksys setup, etc.
I then re-flashed back to openwrt, so a nice blank filesystem and configuration.
I proceeded to break the bridge as before, and then tried scanning for wireless again:
So what I'm seeing:

root@OpenWrt:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:12:17:BD:6B:C1
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:8257 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3071 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:782389 (764.0 KiB)  TX bytes:581518 (567.8 KiB)
          Interrupt:5 Base address:0x2000

eth1      Link encap:Ethernet  HWaddr 00:12:17:BD:6B:C3
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:158215
          TX packets:474 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:283452 (276.8 KiB)
          Interrupt:4 Base address:0x1000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

vlan0     Link encap:Ethernet  HWaddr 00:12:17:BD:6B:C1
          inet addr:192.168.0.77  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8254 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2597 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:633613 (618.7 KiB)  TX bytes:299962 (292.9 KiB)

vlan1     Link encap:Ethernet  HWaddr 00:12:17:BD:6B:C2
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:474 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:281556 (274.9 KiB)

root@OpenWrt:~# wl scan;sleep 3;wl scanresults
eth1: Operation not supported
scan    Initiate an active scan across all channels.
        Optional SSID argument specifies a particular SSID to scan.
        With no SSID argument, a broadcast SSID scan is performed.

root@OpenWrt:~# nvram show |grep wl0 | sort
size: 9734 bytes (23034 left)
wl0_active_mac=
wl0_afterburner=off
wl0_akm=
wl0_antdiv=-1
wl0_ap_isolate=0
wl0_auth=0
wl0_auth_mode=none
wl0_bcn=100
wl0_channel=6
wl0_closed=0
wl0_corerev=7
wl0_country=ALL
wl0_country_code=ALL
wl0_crypto=tkip
wl0_dtim=1
wl0_frag=2346
wl0_frameburst=off
wl0_gmode=1
wl0_gmode_protection=off
wl0_hwaddr=00:12:17:BD:6B:C3
wl0_ifname=eth1
wl0_infra=1
wl0_key1=775A32E1083F65357E895153A1
wl0_key2=87514D44984AC00611DF0710B6
wl0_key3=937D0442DAF9208BF10F05BA99
wl0_key4=7E94E8A0148FD630D3F9DF029B
wl0_key=1
wl0_lazywds=1
wl0_mac_deny=
wl0_mac_list=
wl0_maclist=
wl0_macmode1=disabled
wl0_macmode=disabled
wl0_maxassoc=128
wl0_mode=ap
wl0_mrate=0
wl0_net_mode=mixed
wl0_net_reauth=36000
wl0_passphrase=
wl0_phytype=g
wl0_phytypes=g
wl0_plcphdr=long
wl0_radio=1
wl0_radioids=BCM2050
wl0_radius_ipaddr=
wl0_radius_key=
wl0_radius_port=1812
wl0_rate=0
wl0_rateset=default
wl0_rts=2347
wl0_ssid=ABLINK
wl0_unit=0
wl0_wds=
wl0_wds_timeout=1
wl0_wep=enabled
wl0_wep_bit=64
wl0_wep_buf=
wl0_wep_gen=
wl0_wep_last=
wl0_wme=off
wl0_wme_ap_be=15 63 3 0 0 off
wl0_wme_ap_bk=15 1023 7 0 0 off
wl0_wme_ap_vi=7 15 1 6016 3008 off
wl0_wme_ap_vo=3 7 1 3264 1504 off
wl0_wme_no_ack=off
wl0_wme_sta_be=15 1023 3 0 0 off
wl0_wme_sta_bk=15 1023 7 0 0 off
wl0_wme_sta_vi=7 15 2 6016 3008 off
wl0_wme_sta_vo=3 7 2 3264 1504 off
wl0_wpa_gtk_rekey=3600
wl0_wpa_psk=
wl0gpio2=0
wl0gpio3=0
wl0id=0x4320

Anybody can give me the right nudge?? smile

Regards,
Andy

(Last edited by andyb2000 on 30 Aug 2005, 11:20)

hi! my opinion:

you have to set "wl0_mode=sta" for client mode.
in ap mode you're not able to scan.
you can check this temporarily:
wl scan
<error>
wl ap 0
wl scan
wl scanresults
<went fine>

i hope, this helps!
ciao, der_flo

Hiya,
Thanks for that, unfortunately although it doesn't throw out an error, it still doesn't find any wireless network when I scan:

root@OpenWrt:~# wl ap 0
root@OpenWrt:~# wl scan
root@OpenWrt:~# wl scanresults
root@OpenWrt:~#

So nothing as yet, it still doesn't seem to 'see' my wireless network. Is this normal??

Actually, just found something else that may be relevant, can anyone check this for me?

Module                  Size  Used by    Tainted: P 
wlcompat               14032   0 (unused)
wl                    423640   0 (unused)
et                     32224   0 (unused)
diag                    2448   0 (unused)

Shouldn't the wl modules be in use whilst the eth1 interface is actually up??

OK, have just flashed to Alchemy-V1.0.bin, to try client mode there, and it worked.
So I dumped all the flash settings via

nvram show |grep wl0 | sort

Then went back to openWRT WhiteRussian RC2, client mode didn't work initially, so again dumped the flash settings, then compared the two:

diff openwrt_wireless.txt sveasoft_wireless.txt
1d0
< size: 20050 bytes (12718 left)

So NO difference in the nvram settings, but still no client mode, and same problems as before, so it does indeed look like a bug somewhere in WhiteRussian.
Any of the developers can give me some ideas where to focus, as at the moment I'm not sure if I should be using WL or IWCONFIG to setup the wireless client mode.
Can anyone pls point me in the right direction??

(Last edited by andyb2000 on 4 Sep 2005, 12:53)

is there any post or tutorial for wireless setup, with Experimental openwrt on wrt54g V2.2....i am totally stuck...

oh yes i am new to openwrt..

The old experimental build is obsolete. Use White Russian RC2.

plus you should be doing

wl scan; sleep 1; wl scanresults

TO BE COOL

Thanks..my wireless is up. What was missing for me is that, i have started with RC2, then i used experimental, as i have v2.2. So wl package was not installed by default. I installed  wl and wireless works perfect. I am running in AP mode. I am looking for nfs or some other kind of online storage, as the Space is very important for my project
suggestions welcome

The discussion might have continued from here.