From owner-freebsd-wireless@FreeBSD.ORG Wed Oct 23 23:57:32 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 11053303 for ; Wed, 23 Oct 2013 23:57:32 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x22b.google.com (mail-qc0-x22b.google.com [IPv6:2607:f8b0:400d:c01::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C776B29CF for ; Wed, 23 Oct 2013 23:57:31 +0000 (UTC) Received: by mail-qc0-f171.google.com with SMTP id i7so951864qcq.30 for ; Wed, 23 Oct 2013 16:57:31 -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=PQl54EkC2HokkJ+I9xQq+FsC6uEQH1k8I4iVcgv0KTk=; b=mfVt1SfJyM0eaY3SmuZAC58NEnQ3Vkb3NHHKHdFZDl9hls+4g2rLuE4Sm2YXprq5Q4 +lMZzqxgklSgPp0g8x5JL42ZM5xGAlTsWywfxwCAt/oLbtEIsruIaDM/fjiczPC9XQ3I dPx5kQgcFGzosKqhOdbe7leAgomcrgOTDht7zL2CnK/aR5W8I1r2/2Sc50u8olzJeCiJ JE/0e5+N3KrtvCCumVykMUJMDlgg02BvYeOhVMsdFwW0OsjN1QaSOjAtcubrsIxzDGvI XJgY4kBcXQOQp0B+d4Svu0Og52mfoCNF16t0qnov6b/Vuyyi5do7yfgzOVlVS4lEv0TX esTA== MIME-Version: 1.0 X-Received: by 10.224.167.206 with SMTP id r14mr590197qay.4.1382572651017; Wed, 23 Oct 2013 16:57:31 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Wed, 23 Oct 2013 16:57:30 -0700 (PDT) In-Reply-To: <1382572583.1862.39.camel@eva02.mbsd> References: <1382572583.1862.39.camel@eva02.mbsd> Date: Wed, 23 Oct 2013 16:57:30 -0700 X-Google-Sender-Auth: 5zIi1xYROTeONEJj_FUUs7gZ5z8 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: Wed, 23 Oct 2013 23:57:32 -0000 .. that needs to be fixed. It definitely shouldn't be started twice! -adrian On 23 October 2013 16:56, clutton wrote: > What is the best way to restart a wireless stack? > > A command "ifconfig wlan0 create wlandev ath0" starts the wpa_supplicant > by itself. It means that the netif script runs the wpa_supplicant twice, > always. Is it ok? > > There is my debug during booting: > > [netif.network_common()] START: > [netif.network_common()] ITERATION: > [wpa_supplicant] SUPPID=30067 > [wpa_supplicant] SUPPID=30067 > [netif.network_common()] STOP: > > It means that during running a network_common() from the /etc/rc.d/netif > the /etc/rc.d/wpa_supplicant was called twice. > > /etc/rc.conf > wlans_ath0="wlan0" > ifconfig_wlan0="WPA DHCP" > ifconfig_em0="DHCP" > ipsec_enable="YES" > > /etc/wpa_supplicant.conf > network={ > ssid="ssid" > psk="psk" > } > > 11.0-CURRENT >