[Bug 195300] Missing driver for TP-LINK TL-WN821N v3 USB wifi adapter
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=195300 Glen Barber g...@freebsd.org changed: What|Removed |Added Version|10.1-STABLE |11.0-CURRENT --- Comment #1 from Glen Barber g...@freebsd.org --- I suspect this is not limited to 10.x. -- You are receiving this mail because: You are the assignee for the bug. ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
Re: TP-LINK TL-WN821N
On Sun, Aug 24, 2014 at 06:01:20PM +0200, Carlos Jacobo Puga Medina wrote: Hi Kevin, Hi, Sorry for the late response. Sometimes my wireless device fails to connect at boot, and I need to restart the system. Also it states that the device is not configured. /boot/loader.conf if_urtwn_load=YES legal.realtek.license_ack=1 You might add the following lines to /boot/loader.conf: urtwn-rtl8192cfwT_load=YES urtwn-rtl8192cfwU_load=YES It shows the following output: urtwn0: timeout waiting for checksum report Any thoughts? I thought this problem was fixed in r263154, but apparently not. Could you try this patch? Thanks Index: sys/dev/usb/wlan/if_urtwn.c === --- sys/dev/usb/wlan/if_urtwn.c (revision 271297) +++ sys/dev/usb/wlan/if_urtwn.c (working copy) @@ -2280,8 +2280,6 @@ urtwn_fw_reset(struct urtwn_softc *sc) return; urtwn_ms_delay(sc); } - /* Force 8051 reset. */ - urtwn_write_2(sc, R92C_SYS_FUNC_EN, reg ~R92C_SYS_FUNC_EN_CPUEN); } static void ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
Re: TP-LINK TL-WN821N
On Thu, 10 Jul 2014 13:05:24 +0800 Kevin Lo ke...@freebsd.org wrote: On Wed, Jul 09, 2014 at 03:42:23PM +0200, Carlos Jacobo Puga Medina wrote: On Wed, 9 Jul 2014 18:02:29 +0800 Kevin Lo ke...@freebsd.org wrote: On Tue, Jul 08, 2014 at 12:45:50PM +0200, Carlos Jacobo Puga Medina wrote: On Tue, 8 Jul 2014 10:22:20 +0800 Kevin Lo ke...@freebsd.org wrote: On Mon, Jul 07, 2014 at 12:16:12PM -0700, Adrian Chadd wrote: On 7 July 2014 12:10, Carlos Jacobo Puga Medina c...@fbsd.es wrote: On Mon, 7 Jul 2014 11:48:36 -0700 Adrian Chadd adr...@freebsd.org wrote: I'd just look at porting over the openbsd driver. There's no 11n support in the openbsd code though! That's bad, I hope that the 802.11n protocol will be implemented since it was released in 2009. What do you recommend to do? I'd be happy if the driver showed up from OpenBSD. We can always try to add 11n support. I'm sorry, I don't have much else to say at the moment and as my day job is decidedly not wireless, I can't be much help. :( I'm trying to get D-Link DWA-160 rev. A1 usb wifi adapter working with latest OpenBSD snapshot (2014/07/06). It seems to me that there's a problem with otus(4). dmesg: otus0 at uhub1 port 7 ATHER USB2.0 WLAN rev 2.00/1.07 addr 2 otus0: MAC/BBP AR9170, RF AR9104, MIMO 2T2R, address 00:22:b0:57:fc:dc ifconfig otus0 scan doesn't yield any result. # ifconfig otus0 scan otus0: flags=28802BROADCAST,SIMPLEX,MULTICAST,NOINET6 mtu 1500 lladdr 00:22:b0:57:fc:dc priority: 4 groups: wlan media: IEEE802.11 autoselect status: no network ieee80211: nwid none # -a Kevin Hi, OpenBSD doesn't support 802.11n yet, but some of this cards run in 11g mode for now. So this could be chew better if we work together with them. All OpenBSD wireless drivers don't support .11n yet. What I mean is that driver is not stable. At least for D-Link DWA-160 rev. A1. Anyway if you don't mind I'll send you some outputs from TL-WN821N. No, I don't mind. :-) Thanks. Regards, -- Carlos Jacobo Puga Medina c...@fbsd.es Kevin I'm testing a TL-WN821N v4 device. Wait a minute. You mentioned OpenBSD otus(4), I thought we were talking about the Atheros AR9170 chipset, not the Realtek RTL8192CU chip. Oops, I forgot mentioned that v4 use the Realtek RTL8192CU chipset. https://wikidevi.com/wiki/TP-LINK_TL-WN821N_v4 # uname -a FreeBSD box.underbuild.com 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r268070: Tue Jul 1 14:05:40 CEST 2014 r...@box.underbuild.com:/usr/obj/usr/src/sys/PROD i386 # dmesg | grep urtwn0 urtwn0: vendor 0x0bda product 0x8178, class 0/0, rev 2.00/2.00, addr 3 on usbus2 urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R urtwn0: timeout waiting for firmware readiness # usbconfig -u 2 -a 3 dump_device_desc ugen2.3: product 0x8178 vendor 0x0bda at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x bDeviceSubClass = 0x bDeviceProtocol = 0x bMaxPacketSize0 = 0x0040 idVendor = 0x0bda idProduct = 0x8178 bcdDevice = 0x0200 iManufacturer = 0x0001 retrieving string failed iProduct = 0x0002 retrieving string failed iSerialNumber = 0x0003 retrieving string failed bNumConfigurations = 0x0001 # ifconfig urtwn0 urtwn0: flags=8803UP,BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 2290 ether 10:fe:ed:27:f6:5d nd6 options=21PERFORMNUD,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated I noticed that wireless never goes up. Not much luck here, I get the error: urtwn0: timeout waiting for firmware readiness Ok, I know where the problem lies. Please try this patch, thanks. Index: sys/dev/usb/wlan/if_urtwn.c === --- sys/dev/usb/wlan/if_urtwn.c (revision 268479) +++ sys/dev/usb/wlan/if_urtwn.c (working copy) @@ -2281,9 +2281,6 @@ urtwn_fw_reset(struct urtwn_softc *sc) } /* Force 8051 reset. */ urtwn_write_2(sc, R92C_SYS_FUNC_EN, reg ~R92C_SYS_FUNC_EN_CPUEN); - urtwn_write_2(sc, R92C_SYS_FUNC_EN, - urtwn_read_2(sc, R92C_SYS_FUNC_EN) | - R92C_SYS_FUNC_EN_CPUEN); } static void @@ -2383,6 +2380,11 @@ urtwn_load_firmware(struct urtwn_softc *sc) urtwn_write_1(sc, R92C_MCUFWDL, 0); } + if (!(sc-chip URTWN_CHIP_88E)) { + urtwn_write_2(sc, R92C_SYS_FUNC_EN, +
Re: TP-LINK TL-WN821N
On Thu, 10 Jul 2014 13:05:24 +0800 Kevin Lo ke...@freebsd.org wrote: Ok, I know where the problem lies. Please try this patch, thanks. Index: sys/dev/usb/wlan/if_urtwn.c === --- sys/dev/usb/wlan/if_urtwn.c (revision 268479) +++ sys/dev/usb/wlan/if_urtwn.c (working copy) @@ -2281,9 +2281,6 @@ urtwn_fw_reset(struct urtwn_softc *sc) } /* Force 8051 reset. */ urtwn_write_2(sc, R92C_SYS_FUNC_EN, reg ~R92C_SYS_FUNC_EN_CPUEN); - urtwn_write_2(sc, R92C_SYS_FUNC_EN, - urtwn_read_2(sc, R92C_SYS_FUNC_EN) | - R92C_SYS_FUNC_EN_CPUEN); } static void @@ -2383,6 +2380,11 @@ urtwn_load_firmware(struct urtwn_softc *sc) urtwn_write_1(sc, R92C_MCUFWDL, 0); } + if (!(sc-chip URTWN_CHIP_88E)) { + urtwn_write_2(sc, R92C_SYS_FUNC_EN, + urtwn_read_2(sc, R92C_SYS_FUNC_EN) | + R92C_SYS_FUNC_EN_CPUEN); + } urtwn_write_1(sc, R92C_MCUFWDL, urtwn_read_1(sc, R92C_MCUFWDL) | R92C_MCUFWDL_EN); urtwn_write_1(sc, R92C_MCUFWDL + 2, I'm just rebuilding the kernel. It works! Thanks a lot for your help :) # ifconfig -v wlan0 wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 10:fe:ed:27:f6:5d inet6 fe80::12fe:edff:fe27:f65d%wlan0 prefixlen 64 scopeid 0x4 inet 192.168.1.42 netmask 0xff00 broadcast 192.168.1.255 nd6 options=23PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g status: associated ssid XX channel 11 (2462 MHz 11g) bssid f8:8e:85:c7:11:3d regdomain ETSI2 country ES anywhere -ecm authmode WPA -wps -tsn privacy ON deftxkey UNDEF TKIP 2:128-bit powersavemode OFF powersavesleep 100 txpower 30 txpowmax 50.0 -dotd rtsthreshold 2346 fragthreshold 2346 bmiss 7 11a ucast NONEmgmt 6 Mb/s mcast 6 Mb/s maxretry 6 11b ucast NONEmgmt 1 Mb/s mcast 1 Mb/s maxretry 6 11g ucast NONEmgmt 1 Mb/s mcast 1 Mb/s maxretry 6 turboA ucast NONEmgmt 6 Mb/s mcast 6 Mb/s maxretry 6 turboG ucast NONEmgmt 1 Mb/s mcast 1 Mb/s maxretry 6 sturbo ucast NONEmgmt 6 Mb/s mcast 6 Mb/s maxretry 6 11naucast NONEmgmt 12 MCS mcast 12 MCS maxretry 6 11ngucast NONEmgmt 2 MCS mcast 2 MCS maxretry 6 halfucast NONEmgmt 3 Mb/s mcast 3 Mb/s maxretry 6 quarter ucast NONEmgmt 1 Mb/s mcast 1 Mb/s maxretry 6 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:11a rssi7dBm rate 12 Mb/s roam:11b rssi7dBm rate 1 Mb/s roam:11g rssi7dBm rate 5 Mb/s roam:turboA rssi7dBm rate 12 Mb/s roam:turboG rssi7dBm rate 12 Mb/s roam:sturbo rssi7dBm rate 12 Mb/s roam:11narssi7dBm MCS 1 roam:11ngrssi7dBm MCS 1 roam:halfrssi7dBm rate 6 Mb/s roam:quarter rssi7dBm rate 3 Mb/s -pureg protmode CTS -ht -htcompat -ampdu ampdulimit 64k ampdudensity 8 -amsdu -shortgi htprotmode RTSCTS -puren -smps -rifs -wme -burst -dwds roaming MANUAL bintval 100 groups: wlan # usbconfig -u 2 -a 3 dump_device_desc ugen2.3: product 0x8178 vendor 0x0bda at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x bDeviceSubClass = 0x bDeviceProtocol = 0x bMaxPacketSize0 = 0x0040 idVendor = 0x0bda idProduct = 0x8178 bcdDevice = 0x0200 iManufacturer = 0x0001 802.11n iProduct = 0x0002 USB WLAN iSerialNumber = 0x0003 00e04c01 bNumConfigurations = 0x0001 # netstat -I urtwn0 NameMtu Network Address Ipkts Ierrs IdropOpkts Oerrs Coll urtwn 2290 Link#3 10:fe:ed:27:f6:5d0 0 0 1055 0 0 Could you commit this little tweak to -HEAD? Regards, -- Carlos Jacobo Puga Medina c...@fbsd.es ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
Re: TP-LINK TL-WN821N
On Thu, Jul 10, 2014 at 11:23:44AM +0200, Carlos Jacobo Puga Medina wrote: On Thu, 10 Jul 2014 13:05:24 +0800 Kevin Lo ke...@freebsd.org wrote: Ok, I know where the problem lies. Please try this patch, thanks. Index: sys/dev/usb/wlan/if_urtwn.c === --- sys/dev/usb/wlan/if_urtwn.c (revision 268479) +++ sys/dev/usb/wlan/if_urtwn.c (working copy) @@ -2281,9 +2281,6 @@ urtwn_fw_reset(struct urtwn_softc *sc) } /* Force 8051 reset. */ urtwn_write_2(sc, R92C_SYS_FUNC_EN, reg ~R92C_SYS_FUNC_EN_CPUEN); - urtwn_write_2(sc, R92C_SYS_FUNC_EN, - urtwn_read_2(sc, R92C_SYS_FUNC_EN) | - R92C_SYS_FUNC_EN_CPUEN); } static void @@ -2383,6 +2380,11 @@ urtwn_load_firmware(struct urtwn_softc *sc) urtwn_write_1(sc, R92C_MCUFWDL, 0); } + if (!(sc-chip URTWN_CHIP_88E)) { + urtwn_write_2(sc, R92C_SYS_FUNC_EN, + urtwn_read_2(sc, R92C_SYS_FUNC_EN) | + R92C_SYS_FUNC_EN_CPUEN); + } urtwn_write_1(sc, R92C_MCUFWDL, urtwn_read_1(sc, R92C_MCUFWDL) | R92C_MCUFWDL_EN); urtwn_write_1(sc, R92C_MCUFWDL + 2, I'm just rebuilding the kernel. It works! Thanks a lot for your help :) Excellent, glad to hear it’s working well for you. # ifconfig -v wlan0 wlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 10:fe:ed:27:f6:5d inet6 fe80::12fe:edff:fe27:f65d%wlan0 prefixlen 64 scopeid 0x4 inet 192.168.1.42 netmask 0xff00 broadcast 192.168.1.255 nd6 options=23PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g status: associated ssid XX channel 11 (2462 MHz 11g) bssid f8:8e:85:c7:11:3d regdomain ETSI2 country ES anywhere -ecm authmode WPA -wps -tsn privacy ON deftxkey UNDEF TKIP 2:128-bit powersavemode OFF powersavesleep 100 txpower 30 txpowmax 50.0 -dotd rtsthreshold 2346 fragthreshold 2346 bmiss 7 11a ucast NONEmgmt 6 Mb/s mcast 6 Mb/s maxretry 6 11b ucast NONEmgmt 1 Mb/s mcast 1 Mb/s maxretry 6 11g ucast NONEmgmt 1 Mb/s mcast 1 Mb/s maxretry 6 turboA ucast NONEmgmt 6 Mb/s mcast 6 Mb/s maxretry 6 turboG ucast NONEmgmt 1 Mb/s mcast 1 Mb/s maxretry 6 sturbo ucast NONEmgmt 6 Mb/s mcast 6 Mb/s maxretry 6 11naucast NONEmgmt 12 MCS mcast 12 MCS maxretry 6 11ngucast NONEmgmt 2 MCS mcast 2 MCS maxretry 6 halfucast NONEmgmt 3 Mb/s mcast 3 Mb/s maxretry 6 quarter ucast NONEmgmt 1 Mb/s mcast 1 Mb/s maxretry 6 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:11a rssi7dBm rate 12 Mb/s roam:11b rssi7dBm rate 1 Mb/s roam:11g rssi7dBm rate 5 Mb/s roam:turboA rssi7dBm rate 12 Mb/s roam:turboG rssi7dBm rate 12 Mb/s roam:sturbo rssi7dBm rate 12 Mb/s roam:11narssi7dBm MCS 1 roam:11ngrssi7dBm MCS 1 roam:halfrssi7dBm rate 6 Mb/s roam:quarter rssi7dBm rate 3 Mb/s -pureg protmode CTS -ht -htcompat -ampdu ampdulimit 64k ampdudensity 8 -amsdu -shortgi htprotmode RTSCTS -puren -smps -rifs -wme -burst -dwds roaming MANUAL bintval 100 groups: wlan # usbconfig -u 2 -a 3 dump_device_desc ugen2.3: product 0x8178 vendor 0x0bda at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x bDeviceSubClass = 0x bDeviceProtocol = 0x bMaxPacketSize0 = 0x0040 idVendor = 0x0bda idProduct = 0x8178 bcdDevice = 0x0200 iManufacturer = 0x0001 802.11n iProduct = 0x0002 USB WLAN iSerialNumber = 0x0003 00e04c01 bNumConfigurations = 0x0001 # netstat -I urtwn0 NameMtu Network Address Ipkts Ierrs IdropOpkts Oerrs Coll urtwn 2290 Link#3 10:fe:ed:27:f6:5d0 0 0 1055 0 0 Could you commit this little tweak to -HEAD? Committed as r268487, thanks. Regards, -- Carlos Jacobo Puga Medina c...@fbsd.es Kevin ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
Re: TP-LINK TL-WN821N
On Wed, 9 Jul 2014 18:02:29 +0800 Kevin Lo ke...@freebsd.org wrote: On Tue, Jul 08, 2014 at 12:45:50PM +0200, Carlos Jacobo Puga Medina wrote: On Tue, 8 Jul 2014 10:22:20 +0800 Kevin Lo ke...@freebsd.org wrote: On Mon, Jul 07, 2014 at 12:16:12PM -0700, Adrian Chadd wrote: On 7 July 2014 12:10, Carlos Jacobo Puga Medina c...@fbsd.es wrote: On Mon, 7 Jul 2014 11:48:36 -0700 Adrian Chadd adr...@freebsd.org wrote: I'd just look at porting over the openbsd driver. There's no 11n support in the openbsd code though! That's bad, I hope that the 802.11n protocol will be implemented since it was released in 2009. What do you recommend to do? I'd be happy if the driver showed up from OpenBSD. We can always try to add 11n support. I'm sorry, I don't have much else to say at the moment and as my day job is decidedly not wireless, I can't be much help. :( I'm trying to get D-Link DWA-160 rev. A1 usb wifi adapter working with latest OpenBSD snapshot (2014/07/06). It seems to me that there's a problem with otus(4). dmesg: otus0 at uhub1 port 7 ATHER USB2.0 WLAN rev 2.00/1.07 addr 2 otus0: MAC/BBP AR9170, RF AR9104, MIMO 2T2R, address 00:22:b0:57:fc:dc ifconfig otus0 scan doesn't yield any result. # ifconfig otus0 scan otus0: flags=28802BROADCAST,SIMPLEX,MULTICAST,NOINET6 mtu 1500 lladdr 00:22:b0:57:fc:dc priority: 4 groups: wlan media: IEEE802.11 autoselect status: no network ieee80211: nwid none # -a Kevin Hi, OpenBSD doesn't support 802.11n yet, but some of this cards run in 11g mode for now. So this could be chew better if we work together with them. All OpenBSD wireless drivers don't support .11n yet. What I mean is that driver is not stable. At least for D-Link DWA-160 rev. A1. Anyway if you don't mind I'll send you some outputs from TL-WN821N. No, I don't mind. :-) Thanks. Regards, -- Carlos Jacobo Puga Medina c...@fbsd.es Kevin I'm testing a TL-WN821N v4 device. # uname -a FreeBSD box.underbuild.com 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r268070: Tue Jul 1 14:05:40 CEST 2014 r...@box.underbuild.com:/usr/obj/usr/src/sys/PROD i386 # dmesg | grep urtwn0 urtwn0: vendor 0x0bda product 0x8178, class 0/0, rev 2.00/2.00, addr 3 on usbus2 urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R urtwn0: timeout waiting for firmware readiness # usbconfig -u 2 -a 3 dump_device_desc ugen2.3: product 0x8178 vendor 0x0bda at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x bDeviceSubClass = 0x bDeviceProtocol = 0x bMaxPacketSize0 = 0x0040 idVendor = 0x0bda idProduct = 0x8178 bcdDevice = 0x0200 iManufacturer = 0x0001 retrieving string failed iProduct = 0x0002 retrieving string failed iSerialNumber = 0x0003 retrieving string failed bNumConfigurations = 0x0001 # ifconfig urtwn0 urtwn0: flags=8803UP,BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 2290 ether 10:fe:ed:27:f6:5d nd6 options=21PERFORMNUD,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated I noticed that wireless never goes up. Not much luck here, I get the error: urtwn0: timeout waiting for firmware readiness -- Carlos Jacobo Puga Medina c...@fbsd.es ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
Re: TP-LINK TL-WN821N
On Wed, Jul 09, 2014 at 03:42:23PM +0200, Carlos Jacobo Puga Medina wrote: On Wed, 9 Jul 2014 18:02:29 +0800 Kevin Lo ke...@freebsd.org wrote: On Tue, Jul 08, 2014 at 12:45:50PM +0200, Carlos Jacobo Puga Medina wrote: On Tue, 8 Jul 2014 10:22:20 +0800 Kevin Lo ke...@freebsd.org wrote: On Mon, Jul 07, 2014 at 12:16:12PM -0700, Adrian Chadd wrote: On 7 July 2014 12:10, Carlos Jacobo Puga Medina c...@fbsd.es wrote: On Mon, 7 Jul 2014 11:48:36 -0700 Adrian Chadd adr...@freebsd.org wrote: I'd just look at porting over the openbsd driver. There's no 11n support in the openbsd code though! That's bad, I hope that the 802.11n protocol will be implemented since it was released in 2009. What do you recommend to do? I'd be happy if the driver showed up from OpenBSD. We can always try to add 11n support. I'm sorry, I don't have much else to say at the moment and as my day job is decidedly not wireless, I can't be much help. :( I'm trying to get D-Link DWA-160 rev. A1 usb wifi adapter working with latest OpenBSD snapshot (2014/07/06). It seems to me that there's a problem with otus(4). dmesg: otus0 at uhub1 port 7 ATHER USB2.0 WLAN rev 2.00/1.07 addr 2 otus0: MAC/BBP AR9170, RF AR9104, MIMO 2T2R, address 00:22:b0:57:fc:dc ifconfig otus0 scan doesn't yield any result. # ifconfig otus0 scan otus0: flags=28802BROADCAST,SIMPLEX,MULTICAST,NOINET6 mtu 1500 lladdr 00:22:b0:57:fc:dc priority: 4 groups: wlan media: IEEE802.11 autoselect status: no network ieee80211: nwid none # -a Kevin Hi, OpenBSD doesn't support 802.11n yet, but some of this cards run in 11g mode for now. So this could be chew better if we work together with them. All OpenBSD wireless drivers don't support .11n yet. What I mean is that driver is not stable. At least for D-Link DWA-160 rev. A1. Anyway if you don't mind I'll send you some outputs from TL-WN821N. No, I don't mind. :-) Thanks. Regards, -- Carlos Jacobo Puga Medina c...@fbsd.es Kevin I'm testing a TL-WN821N v4 device. Wait a minute. You mentioned OpenBSD otus(4), I thought we were talking about the Atheros AR9170 chipset, not the Realtek RTL8192CU chip. # uname -a FreeBSD box.underbuild.com 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r268070: Tue Jul 1 14:05:40 CEST 2014 r...@box.underbuild.com:/usr/obj/usr/src/sys/PROD i386 # dmesg | grep urtwn0 urtwn0: vendor 0x0bda product 0x8178, class 0/0, rev 2.00/2.00, addr 3 on usbus2 urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R urtwn0: timeout waiting for firmware readiness # usbconfig -u 2 -a 3 dump_device_desc ugen2.3: product 0x8178 vendor 0x0bda at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x bDeviceSubClass = 0x bDeviceProtocol = 0x bMaxPacketSize0 = 0x0040 idVendor = 0x0bda idProduct = 0x8178 bcdDevice = 0x0200 iManufacturer = 0x0001 retrieving string failed iProduct = 0x0002 retrieving string failed iSerialNumber = 0x0003 retrieving string failed bNumConfigurations = 0x0001 # ifconfig urtwn0 urtwn0: flags=8803UP,BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 2290 ether 10:fe:ed:27:f6:5d nd6 options=21PERFORMNUD,AUTO_LINKLOCAL media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated I noticed that wireless never goes up. Not much luck here, I get the error: urtwn0: timeout waiting for firmware readiness Ok, I know where the problem lies. Please try this patch, thanks. Index: sys/dev/usb/wlan/if_urtwn.c === --- sys/dev/usb/wlan/if_urtwn.c (revision 268479) +++ sys/dev/usb/wlan/if_urtwn.c (working copy) @@ -2281,9 +2281,6 @@ urtwn_fw_reset(struct urtwn_softc *sc) } /* Force 8051 reset. */ urtwn_write_2(sc, R92C_SYS_FUNC_EN, reg ~R92C_SYS_FUNC_EN_CPUEN); - urtwn_write_2(sc, R92C_SYS_FUNC_EN, - urtwn_read_2(sc, R92C_SYS_FUNC_EN) | - R92C_SYS_FUNC_EN_CPUEN); } static void @@ -2383,6 +2380,11 @@ urtwn_load_firmware(struct urtwn_softc *sc) urtwn_write_1(sc, R92C_MCUFWDL, 0); } + if (!(sc-chip URTWN_CHIP_88E)) { + urtwn_write_2(sc, R92C_SYS_FUNC_EN, + urtwn_read_2(sc, R92C_SYS_FUNC_EN) | + R92C_SYS_FUNC_EN_CPUEN); + } urtwn_write_1(sc, R92C_MCUFWDL, urtwn_read_1(sc, R92C_MCUFWDL) | R92C_MCUFWDL_EN); urtwn_write_1(sc, R92C_MCUFWDL + 2, ___ freebsd-wireless@freebsd.org mailing
Re: TP-LINK TL-WN821N
On Tue, 8 Jul 2014 10:22:20 +0800 Kevin Lo ke...@freebsd.org wrote: On Mon, Jul 07, 2014 at 12:16:12PM -0700, Adrian Chadd wrote: On 7 July 2014 12:10, Carlos Jacobo Puga Medina c...@fbsd.es wrote: On Mon, 7 Jul 2014 11:48:36 -0700 Adrian Chadd adr...@freebsd.org wrote: I'd just look at porting over the openbsd driver. There's no 11n support in the openbsd code though! That's bad, I hope that the 802.11n protocol will be implemented since it was released in 2009. What do you recommend to do? I'd be happy if the driver showed up from OpenBSD. We can always try to add 11n support. I'm sorry, I don't have much else to say at the moment and as my day job is decidedly not wireless, I can't be much help. :( I'm trying to get D-Link DWA-160 rev. A1 usb wifi adapter working with latest OpenBSD snapshot (2014/07/06). It seems to me that there's a problem with otus(4). dmesg: otus0 at uhub1 port 7 ATHER USB2.0 WLAN rev 2.00/1.07 addr 2 otus0: MAC/BBP AR9170, RF AR9104, MIMO 2T2R, address 00:22:b0:57:fc:dc ifconfig otus0 scan doesn't yield any result. # ifconfig otus0 scan otus0: flags=28802BROADCAST,SIMPLEX,MULTICAST,NOINET6 mtu 1500 lladdr 00:22:b0:57:fc:dc priority: 4 groups: wlan media: IEEE802.11 autoselect status: no network ieee80211: nwid none # -a Kevin Hi, OpenBSD doesn't support 802.11n yet, but some of this cards run in 11g mode for now. So this could be chew better if we work together with them. Anyway if you don't mind I'll send you some outputs from TL-WN821N. Regards, -- Carlos Jacobo Puga Medina c...@fbsd.es ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
TP-LINK TL-WN821N
Hi people, Does anyone still work to porting the otus driver from OpenBSD? https://github.com/erikarn/otus/tree/master/otus Regards, -- Carlos Jacobo Puga Medina c...@fbsd.es ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
Re: TP-LINK TL-WN821N
On 7 July 2014 05:40, Carlos Jacobo Puga Medina c...@fbsd.es wrote: Hi people, Does anyone still work to porting the otus driver from OpenBSD? https://github.com/erikarn/otus/tree/master/otus Nope. I got stuck on trying to figure out how to correctly implement the synchronous/asynchronous message queues over USB - I haven't found a driver that 100% correctly implements that stuff so I have to hand craft it myself. Then I mostly lost interest. Sorry. -a ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
Re: TP-LINK TL-WN821N
On 7 July 2014 12:10, Carlos Jacobo Puga Medina c...@fbsd.es wrote: On Mon, 7 Jul 2014 11:48:36 -0700 Adrian Chadd adr...@freebsd.org wrote: I'd just look at porting over the openbsd driver. There's no 11n support in the openbsd code though! That's bad, I hope that the 802.11n protocol will be implemented since it was released in 2009. What do you recommend to do? I'd be happy if the driver showed up from OpenBSD. We can always try to add 11n support. I'm sorry, I don't have much else to say at the moment and as my day job is decidedly not wireless, I can't be much help. :( -a ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org
Re: TP-LINK TL-WN821N
On Mon, 7 Jul 2014 12:16:12 -0700 Adrian Chadd adr...@freebsd.org wrote: On 7 July 2014 12:10, Carlos Jacobo Puga Medina c...@fbsd.es wrote: On Mon, 7 Jul 2014 11:48:36 -0700 Adrian Chadd adr...@freebsd.org wrote: I'd just look at porting over the openbsd driver. There's no 11n support in the openbsd code though! That's bad, I hope that the 802.11n protocol will be implemented since it was released in 2009. What do you recommend to do? I'd be happy if the driver showed up from OpenBSD. We can always try to add 11n support. I'm sorry, I don't have much else to say at the moment and as my day job is decidedly not wireless, I can't be much help. :( -a OK, thanks for clearing things up, adrian@ -- Carlos Jacobo Puga Medina c...@fbsd.es ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org