From owner-freebsd-current@freebsd.org Tue Aug 18 08:59:54 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 804779BBBCA; Tue, 18 Aug 2015 08:59:54 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (220-135-115-6.HINET-IP.hinet.net [220.135.115.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns.kevlo.org", Issuer "ns.kevlo.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 24E4424F; Tue, 18 Aug 2015 08:59:53 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (localhost [127.0.0.1]) by ns.kevlo.org (8.14.9/8.14.9) with ESMTP id t7I8wxlS090960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 18 Aug 2015 16:59:00 +0800 (CST) (envelope-from kevlo@ns.kevlo.org) Received: (from kevlo@localhost) by ns.kevlo.org (8.14.9/8.14.9/Submit) id t7I8wwrF090959; Tue, 18 Aug 2015 16:58:58 +0800 (CST) (envelope-from kevlo) Date: Tue, 18 Aug 2015 16:58:58 +0800 From: Kevin Lo To: Anton Shterenlikht Cc: freebsd-current@freebsd.org, freebsd-questions@freebsd.org, Gleb Smirnoff Subject: Re: urtwn: ioctl[SIOCS80211, op=16, arg_len=0]: Invalid argument Message-ID: <20150818085858.GA90949@ns.kevlo.org> References: <201508180827.t7I8R9Nm018227@mech-as222.men.bris.ac.uk> <20150818083248.GA75813@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150818083248.GA75813@FreeBSD.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2015 08:59:54 -0000 On Tue, Aug 18, 2015 at 11:32:48AM +0300, Gleb Smirnoff wrote: > > On Tue, Aug 18, 2015 at 09:27:09AM +0100, Anton Shterenlikht wrote: > A> I'm trying to setup Asus USB-N10 nano wireless > A> adapter. I get: > A> > A> urtwn0: A> class 0/0, rev 2.00/2.00, addr 1> on usbus0 > A> urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R > A> > A> urtwn0: flags=8802 metric 0 mtu 2290 > A> ether 1c:87:2c:c7:c2:6e > A> nd6 options=29 > A> media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) > A> status: no carrier > A> > A> # wpa_supplicant -i urtwn0 -c /etc/wpa_supplicant.conf > A> Successfully initialized wpa_supplicant > A> ioctl[SIOCS80211, op=16, arg_len=0]: Invalid argument > A> urtwn0: Failed to initialize driver interface > A> ELOOP: remaining socket: sock=4 eloop_data=0x801c11600 > A> user_data=0x801c2c100 handler=0x422dd0 > A> > A> # cat /boot/loader.conf > A> kern.vty=vt > A> linux_load="YES" > A> #cuse4bsd_load="YES" > A> if_urtwn_load="YES" > A> legal.realtek.license_ack=1 > A> > A> # uname -a > A> FreeBSD rat 11.0-CURRENT FreeBSD 11.0-CURRENT #1 r286741: > A> Thu Aug 13 22:13:28 BST 2015 > A> root@rat:/usr/obj/usr/src/sys/GENERIC amd64 > > You need to create a wlan(4) interface and run wpa_supplicant on it. > > https://www.freebsd.org/doc/en/books/handbook/network-wireless.html You also have to run kldload urtwn-rtl8192cfwT or add this to /boot/loader.conf: urtwn-rtl8192cfwT_load="YES" The latter will require a reboot to take effect. > -- > Totus tuus, Glebius. Kevin