From owner-freebsd-current@freebsd.org Tue Aug 18 08:32:59 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 6F6749BB35F; Tue, 18 Aug 2015 08:32:59 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebius.int.ru", Issuer "cell.glebius.int.ru" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F120A104A; Tue, 18 Aug 2015 08:32:57 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.15.2/8.15.2) with ESMTPS id t7I8WmcF028338 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 18 Aug 2015 11:32:48 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.15.2/8.15.2/Submit) id t7I8WmE9028337; Tue, 18 Aug 2015 11:32:48 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Tue, 18 Aug 2015 11:32:48 +0300 From: Gleb Smirnoff To: Anton Shterenlikht Cc: freebsd-current@freebsd.org, freebsd-questions@freebsd.org Subject: Re: urtwn: ioctl[SIOCS80211, op=16, arg_len=0]: Invalid argument Message-ID: <20150818083248.GA75813@FreeBSD.org> References: <201508180827.t7I8R9Nm018227@mech-as222.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201508180827.t7I8R9Nm018227@mech-as222.men.bris.ac.uk> 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:32:59 -0000 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: 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 -- Totus tuus, Glebius.