NetBSD-Bugs archive

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

bin/39754: wpa_cli ignores ctrl_interface

>Number:         39754
>Category:       bin
>Synopsis:       wpa_cli ignores ctrl_interface
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 17 01:45:00 +0000 2008
>Originator:     Martin S. Weber
>Release:        NetBSD 4.99.72
System: NetBSD agamemnon.entropie.local 4.99.73 NetBSD 4.99.73 (AGAMEMNON) #8: 
Thu Oct 16 16:40:49 EDT 2008 
Architecture: i386
Machine: i386
When specifying a different ctrl_interface in /etc/wpa_supplicant.conf, 
itself will happily adhere to your wishes and create the directory where you 
pointed it
to, adding socket(s) for each card and so on.

wpa_cli will fail to find the socket though.

Part of ktrace output from wpa_cli:
 2267      1 wpa_cli  CALL  open(0x804f33c,4,0)
 2267      1 wpa_cli  NAMI  "/var/run/wpa_supplicant"
 2267      1 wpa_cli  RET   open -1 errno 2 No such file or directory
You can see how it looks at the wrong place (the standard location).
I have specified ctrl_interface=/var/run/wpa_fun in my wpa_supplicant.conf

But the manpage (wpa_supplicant.conf(5)) mentions..:

             The pathname of the directory in which wpa_supplicant(8) creates
             UNIX domain socket files for communication with frontend programs
             such as wpa_cli(8).

        add ctrl_interface=/var/run/wpa_whatever to your wpa_supplicant.conf
        Start wpa_supplicant (I use the rc.d script)
        Try and start wpa_cli. It'll complain and fail.

        Build date of this system lies now two weeks in the past.

Home | Main Index | Thread Index | Old Index