tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ral(4) and wpa_supplicant?



Sorry I changed topic somewhat below .. talking about netbsd-5 dhcpcd 
below ...

On Wed, 13 May 2009, Roy Marples wrote:

> I've patched drivers/driver_bsd.c to remove and enable the code guarded by
> this define.
> 
> I've checked against the FreeBSD driver which they maintain outside of
> wpa_supplicant and they no longer have that define either. I've also tested
> this against ral(4) and iwi(4). The patch has been sent upstream [1]

From pkgsrc perspective ... iwi(4) doesn't work for me with latest  
wpa_supplicant-0.6.9 with CPPFLAGS+=      -DNEW_FREEBSD_MLME_ASSOC (and 
also did with the patch too which should be identical).  I get

ioctl[SIOCS80211, op 1, len 0]: Invalid argument
Failed to initiate AP scan.


ioctl[SIOCS80211, op 1, len 0]: Invalid argument
Failed to initiate AP scan.

So I reverted to older package wpa_supplicant-0.6.6.tgz.

On a different system using netbsd-5's /usr/sbin/wpa_supplicant and 
/sbin/dhcpcd I had problems. The new wpa_supplicant would attach (before 
it wouldn't with the ioctl invalid argument as mentioned in different 
thread). But then it would lose connection repeatedly. I had to fall back 
to use ifconfig to set my wifi settings. ... okay nevermind this ... my 
problem is with dhcpcd ... after the following switched to dhclient and 
now my networking is working ...

Also upgraded dhcpcd stopped working for me. I was using 5.0_RC2 version 
or something like that (for a couple months) but now moved to latest 
netbsd-5 today.

I am not sure if my rum device or my wireless router, but my rum0 
frequently loses connection. With dhcpcd, it gets a lease and configures 
it, but quickly if loses connection, it unconfigures my network.

So now I used dhclient and it works for me. For example the following is 
when using dhclient

$ /sbin/ifconfig rum0 
rum0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        ssid foo nwkey *****
        powersave off
        address: 00:11:aa:bb:a9:40
        media: IEEE802.11 autoselect (DS1 mode 11g)
        status: no network
        inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::211:50ff:fec1:a940%rum0 prefixlen 64 scopeid 0x4
$ /sbin/ifconfig rum0 
rum0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        ssid foo nwkey *****
        powersave off
        bssid 00:18:01:e0:8a:57 chan 6
        address: 00:11:aa:bb:a9:40
        media: IEEE802.11 autoselect (OFDM36 mode 11g)
        status: active
        inet 192.168.1.7 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::211:50ff:fec1:a940%rum0 prefixlen 64 scopeid 0x4

But when using netbsd-5 dhcpcd, when the status goes to "no network" the 
"inet" becomes unconfigured. Maybe there is an option to not unconfigure.

By using dhclient, I can still use.

(So I went back to new wpa_supplicant. And is working.)

I was using "rum0" as my dhcpcd command line argument 
(dhcpcd_flags="-C resolv.conf rum0") but rc.d script has;

pidfile=/var/run/$name.pid

So "status" and "stop" for the rc.d script do not work (rum0 is part of 
pid file name).




Home | Main Index | Thread Index | Old Index