urtwn: ioctl[SIOCS80211, op=16, arg_len=0]: Invalid argument

Kevin Lo kevlo at FreeBSD.org
Tue Aug 18 08:59:54 UTC 2015


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: <vendor 0x0b05 product 0x17ba,
> 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<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
> A>         ether 1c:87:2c:c7:c2:6e
> A>         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> 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 at 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


More information about the freebsd-questions mailing list