From owner-freebsd-wireless@FreeBSD.ORG Sat Nov 2 09:44:57 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B8BB28DA for ; Sat, 2 Nov 2013 09:44:57 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 518C32B7F for ; Sat, 2 Nov 2013 09:44:57 +0000 (UTC) Received: by mail-wi0-f170.google.com with SMTP id ex4so232217wid.1 for ; Sat, 02 Nov 2013 02:44:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=A5nJsac74wD6qv2eRYrF3kjyrinZOeLukN0mjDRgqaY=; b=VBDIw2waeg3CYqk+uUYJRkX8f+y6JMmkbVxCTQQSyvy0/KQ44z/fdvEBo+rUDmHUHV kkvf9RQHjHCEdzAM6AZv6KY7ttIQLb1AzddydabZwsTCE5pZlI70sbP3M4Ogq/ag7AiX xyfu418RlaGLRCGfhCNhsgnbppbJ8P+ZDSNz6M1OdkXHf+iPREaKj0wt4eZEyudQB4xv fvAeDAcxPzH+MpL7K2VbAuGHf8+Og0T54U9EF/uBSPxICTT+5FAKEMWhZGR8wli8dAbe MmmOQm+UA6O1GRINo3INBuTaefQpQXhUuoEbbZcuL4Q/ywlaEyEBNiV0Nv2LRlk5wfvz uQXA== X-Gm-Message-State: ALoCoQntMdtQoKfq+DVV9HUEpqWKB8M51+G8cwGDGabFFzWlKkLnLmfefigyFv/jxpKykvmreJQF MIME-Version: 1.0 X-Received: by 10.180.94.38 with SMTP id cz6mr5338104wib.27.1383385020990; Sat, 02 Nov 2013 02:37:00 -0700 (PDT) Received: by 10.227.226.196 with HTTP; Sat, 2 Nov 2013 02:37:00 -0700 (PDT) X-Originating-IP: [88.65.219.231] In-Reply-To: <1383382815.31973.1.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> <1383338117.13657.53.camel@eva02.mbsd> <1383382815.31973.1.camel@eva02.mbsd> Date: Sat, 2 Nov 2013 10:37:00 +0100 Message-ID: Subject: Re: service netif restart [iface] runs a wpa_supplicant twice From: Bernhard Schmidt To: clutton Content-Type: text/plain; charset=ISO-8859-1 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: Sat, 02 Nov 2013 09:44:57 -0000 On Sat, Nov 2, 2013 at 10:00 AM, clutton wrote: > On Fri, 2013-11-01 at 23:50 -0700, Adrian Chadd wrote: >> OK, so where's the other path for invoking wpa_supplicant? > > What do you mean? kldload if_ath if will create ath0 which is a INET interface which will invoke pccard_ether, which will configure the interface based on what is configured in rc.conf. Point is, down the road wlan0 will be created, with 2 things following 1. start wpa_supplicant if it is configured in rc.conf 2. create an event for devd which will again invoke pccard_ether for wlan0 So basically we have 2 instances of pccard_ether started, one for ath0 and one for wlan0. create ath0 -> devd (new interface ath0) -> pccard_ether -> create wlan0 (*) -> start wpa_supplicant (*) devd (new interface wlan0) -> pccard_ether -> start wpa_supplicant Hope that makes it a bit clearer. -- Bernhard