From owner-freebsd-current@FreeBSD.ORG Wed Dec 18 15:48:20 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id 4BE4B5A7; Wed, 18 Dec 2013 15:48:20 +0000 (UTC) Date: Wed, 18 Dec 2013 15:48:20 +0000 From: Alexey Dokuchaev To: Alfred Perlstein Subject: Re: urtwn driver for Edimax EW-7811U WLAN nano USB Adapter Message-ID: <20131218154820.GA20655@FreeBSD.org> References: <201310061521.r96FLmxw077281@fire.js.berklix.net> <52519CB9.8040203@mu.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline In-Reply-To: <52519CB9.8040203@mu.org> User-Agent: Mutt/1.5.22 (2013-10-16) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 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: Wed, 18 Dec 2013 15:48:20 -0000 --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Oct 06, 2013 at 10:24:09AM -0700, Alfred Perlstein wrote: > I got one of these (if_urtwn) and it works enough to download about a meg > or so before the watchdog kicks in and I have to ifconfig down/up it to > get it to respond again. > > I even have a patch pending to add the usb identifier for this. Same here; someone at $work bought couple of these teeny dongles. I've applied small id patch (attached), and tried to use it (it reportedly works flawlessly under Linux using this [*] driver). I could load the module, but MAC address was clearly bogus (00:00:30:34:43:30); yet I've created wlan0 just to find out that there is no list scan results, and wpa_supplicant(8) gives me this in an endless loop (GENERIC kernel, so I presume all wlan-related stuff should be in place): Successfully initialized wpa_supplicant ioctl[SIOCS80211, op=103, val=0, arg_len=128]: Device not configured wlan0: Failed to initiate AP scan This is on relatively fresh 11-CURRENT as of Oct 18th, i386. Any clues? It would be nice to get more of these little guys to work, esp. there is working Linux driver available for reference. ./danfe [*] https://github.com/liwei/rpi-rtl8188eu --opJtzjQTFsWo+cga Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="urtwn.diff" Index: usbdevs =================================================================== --- usbdevs (revision 256716) +++ usbdevs (working copy) @@ -3602,6 +3602,7 @@ product REALTEK RTL8188CU_COMBO 0x8754 RTL8188CU product REALTEK RTL8191CU 0x8177 RTL8191CU product REALTEK RTL8192CU 0x8178 RTL8192CU +product REALTEK RTL8188EU 0x8179 RTL8188EU product REALTEK RTL8192CE 0x817c RTL8192CE product REALTEK RTL8188RU_1 0x817d RTL8188RU product REALTEK RTL8712 0x8712 RTL8712 Index: wlan/if_urtwn.c =================================================================== --- wlan/if_urtwn.c (revision 256716) +++ wlan/if_urtwn.c (working copy) @@ -138,6 +138,7 @@ URTWN_DEV(REALTEK, RTL8191CU), URTWN_DEV(REALTEK, RTL8192CE), URTWN_DEV(REALTEK, RTL8192CU), + URTWN_DEV(REALTEK, RTL8188EU), URTWN_DEV(SITECOMEU, RTL8188CU_1), URTWN_DEV(SITECOMEU, RTL8188CU_2), URTWN_DEV(SITECOMEU, RTL8192CU), --opJtzjQTFsWo+cga--