From owner-freebsd-net@FreeBSD.ORG Wed Nov 26 01:10:17 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6446E960 for ; Wed, 26 Nov 2014 01:10:17 +0000 (UTC) Received: from mail-wi0-x22e.google.com (mail-wi0-x22e.google.com [IPv6:2a00:1450:400c:c05::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E91462FA for ; Wed, 26 Nov 2014 01:10:16 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id h11so10952762wiw.7 for ; Tue, 25 Nov 2014 17:10:15 -0800 (PST) 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=Kvj+Y3PiQiXMjna9N7Kg4I+7onSBDAjd/HFcECYgGqo=; b=CAZgMo17TEDvXWMxdAgIGrCTirIaaNUekCY9JsU/mx+XTjP+dcHco2F/180SXjhDWj g4n9eAnzmwlRWd5cypH4qulnCGjPtDg2uQs5ByI7Z8xTw/RBACbuNL3KbB4IamV28mmN KXpUS5Eum2pIbooy3gnPnPK6pciNllJ8NjggFz4ig2NOj/mXmjPXLxRlnFDacRJ4dR6h X67pZFOrfQeZLi/n7nOMlv6iL/fbSuoqVnWSkQxzToGaluh7YmLYf411oOjBl7UBrH6u fTt/N/URkr9SgvrGcq99x+flXCZy65vv7FCDOFH+I7OKKKL0hp0K3Z+zJjBFpryQ3Zfl vDUw== MIME-Version: 1.0 X-Received: by 10.194.24.103 with SMTP id t7mr23901730wjf.15.1416964215210; Tue, 25 Nov 2014 17:10:15 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.106.136 with HTTP; Tue, 25 Nov 2014 17:10:15 -0800 (PST) In-Reply-To: <20141125213150.GH30752@tweddell.de> References: <20141124141234.GG30752@tweddell.de> <20141125213150.GH30752@tweddell.de> Date: Tue, 25 Nov 2014 17:10:15 -0800 X-Google-Sender-Auth: M8a8s4yrrF7PkHoFVyR8bR4AYn8 Message-ID: Subject: Re: iwn fails to scan on E6330 From: Adrian Chadd To: Bastian Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2014 01:10:17 -0000 The framework exists so NICs that allow multiple virtual interfaces can. The iwn driver currently doesn't support this - it only supports one. I'm not sure about why wpa_supplicant is chewing so much CPU time and why it isn't shut down cleanly. You can use service to shut down a single interface - I don't recall why. Try service netif stop wlan0 ? -a On 25 November 2014 at 13:31, Bastian wrote: > On 24Nov14 08:27 -0800, Adrian Chadd wrote: >> You need to create wlan0 first before you use it. >> >> # ifconfig wlan0 create wlandev iwn0 >> # ifconfig wlan0 up >> # ifconfig wlan0 list scan (bringing it 'up' will start scanning) >> > > Many thanks. I skiped that one while reading the manual. But now it > works well. > > May I assume, that you can create multiple wlan\d devices on one and the > sane iwn0 kernel device? > > > Now, I have wpa_supplicant working, in a way that it is automatically > searching for an available wifi network. This is triggered in the > /etc/rc.conf file during boot. > > I may have some follow-up questions: > > Q: service netif stop, shuts everything down, but the wpa_supplicant > process withstands from going down and starts to loop 100% cpu cyles > :/ > > Q: How can I just shutdown a single network interface? Keeping others > up and with the adjustment of the default routing. > > > Many thanks in advance, > > -- > Bastian