NetBSD Problem Report #39754

From Ephaeton@gmx.net  Fri Oct 17 01:43:00 2008
Return-Path: <Ephaeton@gmx.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id CDDF463BC83
	for <gnats-bugs@gnats.NetBSD.org>; Fri, 17 Oct 2008 01:42:59 +0000 (UTC)
Message-Id: <20081017014252.80D111363E@agamemnon.entropie.local>
Date: Thu, 16 Oct 2008 21:42:52 -0400 (EDT)
From: Ephaeton@gmx.net
Reply-To: Ephaeton@gmx.net
To: gnats-bugs@gnats.NetBSD.org
Subject: wpa_cli ignores ctrl_interface
X-Send-Pr-Version: 3.95

>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
>Organization:

>Environment:


System: NetBSD agamemnon.entropie.local 4.99.73 NetBSD 4.99.73 (AGAMEMNON) #8: Thu Oct 16 16:40:49 EDT 2008 root@agamemnon.entropie.local:/home/netbsd/obj/sys/arch/i386/compile/AGAMEMNON i386
Architecture: i386
Machine: i386
>Description:

When specifying a different ctrl_interface in /etc/wpa_supplicant.conf, wpa_supplicant
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..:

     ctrl_interface
             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).


>How-To-Repeat:
	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.

>Fix:
	Dunno.


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

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.