From owner-freebsd-wireless@FreeBSD.ORG Fri Nov 1 19:33:33 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 5857F7C8 for ; Fri, 1 Nov 2013 19:33:33 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x22a.google.com (mail-qc0-x22a.google.com [IPv6:2607:f8b0:400d:c01::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 181952362 for ; Fri, 1 Nov 2013 19:33:33 +0000 (UTC) Received: by mail-qc0-f170.google.com with SMTP id n9so2707278qcw.15 for ; Fri, 01 Nov 2013 12:33:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=j3R4DwYVT8FjRJfrb3OzmMXIEZWjcfxpvz08MAhSEZs=; b=hhQdkPG7ZuAsxxZjOTAzuLBSX6WM/7pd/QRhhkDBSjUHcxlqAnbk62UzCp8wV3yP/j Gxx/mMpv4uGqFu4QBmkNPD23iHRnQlOtbixQje/XsgyXyFL6Kh6eLaci7gqb9dg+aWnr dnNS1UYWxEfjw2Va6o/4mBGuXb2Z/tdLaqHUlrsZqf6mXiTgvYgok6agth5ueYjalQnm uCDKbnNl5y5PNRTXQFfAn8ht7h2d7hVJVky5zUYZNhixenIUeYFK9rZH/DC/KNISEdts Qjm2RQQkTwf5ZMHLQlaiv8ooDOdubH5oxLndKitvDI76Bg6pNdI/VcSdgj8UWXFR3ZWk tVzQ== MIME-Version: 1.0 X-Received: by 10.49.127.179 with SMTP id nh19mr6105220qeb.1.1383334412323; Fri, 01 Nov 2013 12:33:32 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Fri, 1 Nov 2013 12:33:32 -0700 (PDT) In-Reply-To: References: <1382572583.1862.39.camel@eva02.mbsd> <1382589020.1846.36.camel@eva02.mbsd> <1383331203.12614.1.camel@eva02.mbsd> Date: Fri, 1 Nov 2013 12:33:32 -0700 X-Google-Sender-Auth: GkoWZ-8P-u6N1yJq06gAPVp-Oys Message-ID: Subject: Re: service netif restart [iface] runs a wpa_supplicant twice From: Adrian Chadd To: Bernhard Schmidt Content-Type: text/plain; charset=ISO-8859-1 Cc: clutton , "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 19:33:33 -0000 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