Date: Mon, 04 Feb 2019 21:07:00 +0000 From: bugzilla-noreply@freebsd.org To: wireless@FreeBSD.org Subject: [Bug 233949] [rtwn] if_rtwn packet loss 10-25% Message-ID: <bug-233949-21060-Xd4jTLg4Jp@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-233949-21060@https.bugs.freebsd.org/bugzilla/> References: <bug-233949-21060@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233949 --- Comment #10 from mr_beaner_2003@yahoo.com --- It seems there are some data type mismatches, which may be resulting in undefined behavior. This is probably more appropriate, after reviewing the = data structures... Index: /usr/src/sys/dev/rtwn/rtl8192c/r92c_rx.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- /usr/src/sys/dev/rtwn/rtl8192c/r92c_rx.c (revision 343552) +++ /usr/src/sys/dev/rtwn/rtl8192c/r92c_rx.c (working copy) @@ -83,10 +83,10 @@ r92c_get_rssi_ofdm(struct rtwn_softc *sc, void *physt) { struct r92c_rx_phystat *phy =3D (struct r92c_rx_phystat *)physt; - int rssi; + uint8_t rssi =3D phy->pwdb_all; /* Get average RSSI. */ - rssi =3D ((phy->pwdb_all >> 1) & 0x7f) - 110; + rssi =3D ((rssi >> 1) & 0x7f) - 110; return (rssi); } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233949-21060-Xd4jTLg4Jp>