From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 1 20:02:34 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id BF0F2170 for ; Fri, 1 Nov 2013 20:02:34 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x233.google.com (mail-qc0-x233.google.com [IPv6:2607:f8b0:400d:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7D04024F7 for ; Fri, 1 Nov 2013 20:02:34 +0000 (UTC) Received: by mail-qc0-f179.google.com with SMTP id k18so2686883qcv.24 for ; Fri, 01 Nov 2013 13:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=s03P+6c9CQR9BXP7e+0h2nufTc8JAfak9Xgt5FNzJz0=; b=L80kYWUEUWIVELCb0XMKLLdZcqelRk84cqgupnegrR9YFkosJd+P5w48APDKo1pVDM bSc+xsL2V5lyrHf65Gsh5V4oIbIWPAe3A1URlXN+8wPbp7vPqkEaICxlYQTPe3JvQ+hw /hiNfdlJMmiQcpN/Xo8ypa1EKIf0x/Qy33zT60CJQKOKmHDE+Qx7wm2sKCwfb/aQ0eVL ER6nZ0LOrvRODtY+gTszZyYHVd6aplS+RHnF50MTxwGXX5VrMrcj1eoyVmmZUQKIPOFX AWi7g5q82o8mAJV+9KC3CRWXGFItGPuBk7MgeebNaIq+DA2II5gkDefZs77f+PzktdMJ 7zRg== MIME-Version: 1.0 X-Received: by 10.224.63.199 with SMTP id c7mr6350870qai.74.1383336153685; Fri, 01 Nov 2013 13:02:33 -0700 (PDT) Received: by 10.224.207.66 with HTTP; Fri, 1 Nov 2013 13:02:33 -0700 (PDT) Received: by 10.224.207.66 with HTTP; Fri, 1 Nov 2013 13:02:33 -0700 (PDT) In-Reply-To: <1383336004.13657.18.camel@eva02.mbsd> References: <1382572583.1862.39.camel@eva02.mbsd> <1382589020.1846.36.camel@eva02.mbsd> <1383331203.12614.1.camel@eva02.mbsd> <1383336004.13657.18.camel@eva02.mbsd> Date: Fri, 1 Nov 2013 13:02:33 -0700 Message-ID: Subject: Re: service netif restart [iface] runs a wpa_supplicant twice From: Adrian Chadd To: clutton Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-wireless@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2013 20:02:34 -0000 What's running the other copy? Adrian On Nov 1, 2013 4:00 PM, "clutton" wrote: > On Fri, 2013-11-01 at 12:33 -0700, Adrian Chadd wrote: > > On 1 November 2013 12:16, Bernhard Schmidt > wrote: > > > > > That actually is a design question I once wrapped my head around > > > unsuccessfully. The lines above are responsible for configuring wlan0 > > > if it is created, eg. > > > ifconfig wlan0 destroy > > > ifconfig wlan0 create wlandev ath0 > > > will invoke above code which will then invoke pccard_ether. Changing > > > the code as you intent to will prevent this. > > > > > > Someone should step up an decide what is supposed to happen, should > > > wlan0 in that case be configured as stated in rc.conf, or not? > > > > > > The actual issue though, is in wpa_supplicant itself. It has code to > > > prevent it being started twice, but that doesn't kick in because the > > > instances are started to fast and we loose (have not yet setup enough) > > > information in our net code. > > > > Uhm, I'm confused by this. Would you mind explaining it in a bit more > detail? > > > > > > -a > > The devd runs a pccard_ether script when the IFNET interface appears. > In some rare cases you can see two copies of the wpa_sopplicant. >