Re: urtwn driver for Edimax EW-7811U WLAN nano USB Adapter

看板FB_current作者時間12年前 (2014/03/10 16:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串12/14 (看更多)
On 2014/02/10 20:21, Alexey Dokuchaev wrote: > On Tue, Oct 15, 2013 at 11:13:56PM -0700, Rui Paulo wrote: >> On 8 Oct 2013, at 10:41, Julian H. Stacey <jhs@berklix.com> wrote: >>> I too am seeing >>> urtwn0: timeout waiting for checksum report >> Sorry, this is a know problem that I haven't been able to figure out... >> It probably exists in the OpenBSD driver as well. Usually retrying works. > To augment this a bit: I also came across one of these dongles (vendor > 0x0bda product 0x8176) that gave me this "timeout waiting for checksum > report" message. Retrying didn't help, but plugging the dongle out and > then back in did. After powercycling the machine, I had to replug it > again. Once replugged, the dongle seems to work fine (I rebuilt kernel > and some ports via NFS over it thus far). > > This suggests that the driver (or more generic part of the USB stack) > does not initialize something correctly, while full plug-and-play thing > does it. Any ideas? We have to reset the bit of the R92C_MCUFWDL associated with checksum report before writing firmware. Could you try this patch? Thanks. Index: sys/dev/usb/wlan/if_urtwn.c =================================================================== --- sys/dev/usb/wlan/if_urtwn.c (revision 262971) +++ sys/dev/usb/wlan/if_urtwn.c (working copy) @@ -2071,6 +2071,10 @@ urtwn_load_firmware(struct urtwn_softc *sc) urtwn_write_1(sc, R92C_MCUFWDL + 2, urtwn_read_1(sc, R92C_MCUFWDL + 2) & ~0x08); + /* Reset the FWDL checksum. */ + urtwn_write_1(sc, R92C_MCUFWDL, + urtwn_read_1(sc, R92C_MCUFWDL) | R92C_MCUFWDL_CHKSUM_RPT); + for (page = 0; len > 0; page++) { mlen = min(len, R92C_FW_PAGE_SIZE); error = urtwn_fw_loadpage(sc, page, ptr, mlen); _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1J7N4_KT (FB_current)
討論串 (同標題文章)
完整討論串 (本文為第 12 之 14 篇):
文章代碼(AID): #1J7N4_KT (FB_current)