Today I added a Zyxel NWD2015[1] usb network adapter to a laptop running latest 
FreeBSD 10.2-stable:
root@kg-z30b# uname -a
FreeBSD kg-z30b.kg4.no 10.2-STABLE FreeBSD 10.2-STABLE #0 r292123: Sat Dec 12 
00:58:41 CET 2015
     r...@kg-z30b.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
As support for this was added by a patch from bug 188046[2] back in 2014, I was 
a bit surprised to see that if_run loaded, but the 
adapter wasn't detected.
I turns out that only half the patch from the bug is in stable/10:
root@kg-z30b# grep NWD2105 /usr/src/sys/dev/usb/usbdevs
product ZYXEL RT3070        0x341e    NWD2105
but the second half is missing:
root@kg-z30b# grep ZYXEL /usr/src/sys/dev/usb/wlan/if_run.c
    RUN_DEV(ZYXEL,        RT2870_1),
    RUN_DEV(ZYXEL,        RT2870_2),

adding the missing part and recompiling if_run module and the NWD2105 works. 
From /var/log/messages:
Dec 13 22:36:53 kg-z30b kernel: run0: <1.0> on usbus0
Dec 13 22:36:53 kg-z30b kernel: run0: MAC/BBP RT3070 (rev 0x0201), RF RT3020 
(MIMO 1T1R), address b0:b2:dc:60:38:9f
Dec 13 22:36:53 kg-z30b devd: Executing '/etc/pccard_ether run0 start'

Dec 13 22:36:54 kg-z30b kernel: run0: firmware RT2870 ver. 0.33 loaded

ifconfig output:
root@kg-z30b# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether b0:b2:dc:60:38:9f
        inet netmask 0xffff0000 broadcast 
        media: IEEE 802.11 Wireless Ethernet DS/2Mbps mode 11g
        status: associated
        ssid kg5 channel 7 (2442 MHz 11g) bssid e0:cb:4e:86:81:0b
        country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
        TKIP 2:128-bit txpower 0 bmiss 7 scanvalid 60 protmode CTS wme
        roaming MANUAL

2) https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188046
Torfinn Ingolfsen <torfinn.ingolf...@getmail.no>
freebsd-usb@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to