OpenWrt Forum Archive

Topic: Router WiFi doesn't work with WPA encryption using KAMIKAZE (r12642)

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

Router WiFi will configure and work with WEP encryption, not WPA encryption.   Using Asus wl500gP v2.   Openwrt snapshots packages( wpa-cli & wpa-supplicant (md5sum doesn't match)) won't install..    I think you also need a nas package, which is installed.    Anyone have knowledge of this problem and how to resolve???   Thanks    Wix

Did you see my reply to your other post? You don't need wpa_supplicant unless you've replaced the network card in the 500gP.

Are you acessing in client mode or trying to start an access point?

For an access point, nas should start automatically. Make sure you've set the "option key" setting in /etc/config/wireless to "psk" or "psk2", or "psk+psk2".

For client mode, you'll probably need to throw together a script to start NAS manually after you bring up the network (this was my experience.) Parameters are at http://wiki.openwrt.org/OpenWrtDocs/nas

Gus929,
Been off-line and just saw your response, thanks.    The situation:   Have a Asus wl500gPv1 being replaced with a Asus wl500gPv2.  The wireless configuration for both units is as follows

config wifi-device  wl0
    option type     broadcom
    option channel  8

    # REMOVE THIS LINE TO ENABLE WIFI:

config wifi-iface
    option device   wl0
    option network    lan
    option mode    sta
    option ssid    PFM
    option encryption psk
    option key1 pxyz1245
    option key 1



When I run   "uci show" , the last few lines of output is:
**************

ntpclient.cfg0ca541=ntpclient
ntpclient.cfg0ca541.interval=60
system.cfg02912e=system
system.cfg02912e.hostname=OpenWrt
system.cfg02912e.timezone=MST7
uci: Parse error (too many arguments) at line 11, byte 27
root@OpenWrt:/etc/config#


To me this indicates a problem with wireless config.     Still, pretty much a newbie and appreciate your help..
Can I just issue a setup from the command line  to test is "nas" is running?       

Wix

Gus929,

Just read your response from other post.   "ps w | grep nas"   came back with no response..    So, nas is not running....   Wondering if nas is supported in Kamikaze r12642....   

Wix

The "option mode sta" above means that you're trying to connect in client mode (ie connect to an existing AP.) You need to run nas manually,

Read here and follow the directions, you should be fine: http://wiki.openwrt.org/OpenWrtDocs/Kam … cde7deea82

You may find you need to twiddle the -m and -w arguments to nas to suit your AP's encryption type. They're all documented on the wiki page I linked to in my first relpy, just experiment until you find a combo that works.

(Last edited by Gus929 on 14 Oct 2008, 00:41)

Oh, and if you use the startup script linked in the wiki document then you should change "option key1" to "option key" in your /etc/config/wireless.

Oh, also I think the argument "-I br0" in the nas command line above will need to be "-I br-lan"  for us, as the bridge interface name has changed since that doc was written. Run "ifconfig" and look at the names of the interfaces to verify this.

Gus929,

Appreciate your help....   Will try this today and get back to you......

Gus929,

Verified the argument for the following command.   Here is list of my steps......    The one difference I identified was the Asus wl500gPv1 is running nas-4.80.53.0-1  and this router Asus wl500gPv2 is running nas-4.150.10.5.2-1.    This router is also running kamikaze r12642......   



root@OpenWrt:~# nas -P /tmp/nas.lan.pid -l br-lan -H 34954 -i wl0 -A -m 4 -k xyz1234 -s 'PFM Master' -w 2 -g 3600
(command went to never-never land, had to ctl c to stop)
root@OpenWrt:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth0.0    no wireless extensions.

eth0.1    no wireless extensions.

br-lan    no wireless extensions.

wl0       IEEE 802.11-DS  ESSID:"PFM Master"   (< this is access point router)
          Mode:Master  Frequency:2.447 GHz  Access Point: 00:22:15:78:77:21   
          Bit Rate=54 Mb/s   Tx-Power:32 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Link Quality:5  Signal level:0  Noise level:164
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:22:15:78:77:21 
          inet addr:192.168.1.12  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:377 errors:0 dropped:0 overruns:0 frame:0
          TX packets:320 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:23706 (23.1 KiB)  TX bytes:38387 (37.4 KiB)

eth0      Link encap:Ethernet  HWaddr 00:22:15:78:77:21 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:371 errors:0 dropped:0 overruns:0 frame:0
          TX packets:435 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:31466 (30.7 KiB)  TX bytes:89533 (87.4 KiB)
          Interrupt:4

eth0.0    Link encap:Ethernet  HWaddr 00:22:15:78:77:21 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:377 errors:0 dropped:0 overruns:0 frame:0
          TX packets:320 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:25214 (24.6 KiB)  TX bytes:39667 (38.7 KiB)

eth0.1    Link encap:Ethernet  HWaddr 00:22:15:78:77:21 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:119 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:48314 (47.1 KiB)

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:21 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1764 (1.7 KiB)  TX bytes:1764 (1.7 KiB)

wl0       Link encap:Ethernet  HWaddr 00:22:15:78:77:21 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:11962
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:2 Base address:0x5000

root@OpenWrt:~# wl scan

root@OpenWrt:~# wl scanresults
SSID: "PFM Master"                               (< this is access point router)
Mode: Managed    RSSI: -33 dBm    noise: -92 dBm    Channel: 6
BSSID: 00:1B:11:5D:F2:CB    Capability: ESS WEP ShortPre ShortSlot
Supported Rates: [ 1(b) 2(b) 5.5(b) 11(b) 6 12 24 36 9 18 48 54 ]
WPA:
    multicast cipher: TKIP
    unicast ciphers(2): TKIP AES-CCMP
    AKM Suites(1): WPA-PSK
    No WPA Capabilities advertised

root@OpenWrt:~# ping 192.168.1.1   (< this is access point router)
PING 192.168.1.1 (192.168.1.1): 56 data bytes

--- 192.168.1.1 ping statistics ---
80 packets transmitted, 0 packets received, 100% packet loss
root@OpenWrt:~#


Any suggestions ?????    At this point it might be easier to reconfigure my network to WEP encryption.

Wix

The discussion might have continued from here.