Date: Sat, 3 Dec 2016 14:41:54 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r309480 - head/sys/dev/rtwn/rtl8192c/usb Message-ID: <201612031441.uB3EfsHZ046547@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevlo Date: Sat Dec 3 14:41:53 2016 New Revision: 309480 URL: https://svnweb.freebsd.org/changeset/base/309480 Log: Fix logic error so the R92C_TDECTRL register value is updated correctly. Reviewed by: avos Modified: head/sys/dev/rtwn/rtl8192c/usb/r92cu_init.c Modified: head/sys/dev/rtwn/rtl8192c/usb/r92cu_init.c ============================================================================== --- head/sys/dev/rtwn/rtl8192c/usb/r92cu_init.c Sat Dec 3 14:26:58 2016 (r309479) +++ head/sys/dev/rtwn/rtl8192c/usb/r92cu_init.c Sat Dec 3 14:41:53 2016 (r309480) @@ -333,9 +333,11 @@ void r92cu_init_tx_agg(struct rtwn_softc *sc) { struct rtwn_usb_softc *uc = RTWN_USB_SOFTC(sc); + uint32_t reg; - rtwn_setbits_4(sc, R92C_TDECTRL, - R92C_TDECTRL_BLK_DESC_NUM_M, uc->tx_agg_desc_num); + reg = rtwn_read_4(sc, R92C_TDECTRL); + reg = RW(reg, R92C_TDECTRL_BLK_DESC_NUM, uc->tx_agg_desc_num); + rtwn_write_4(sc, R92C_TDECTRL, reg); } void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612031441.uB3EfsHZ046547>