Date: Wed, 19 Jan 2011 01:23:18 -0800 (PST) From: PseudoCylon <moonlightakkiy@yahoo.ca> To: Alexander Zagrebin <alex@zagrebin.ru> Cc: freebsd-net@freebsd.org Subject: Re: if_run and wlan_amrr: kernel panics on 8.2-PRERELEASE amd64 Message-ID: <174429.26123.qm@web39308.mail.mud.yahoo.com> In-Reply-To: <20110118120038.9C4E81065853@hub.freebsd.org> References: <20110118120038.9C4E81065853@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> Message: 19
> Date: Tue, 18 Jan 2011 13:26:58 +0300
> From: Alexander Zagrebin <alex@zagrebin.ru>
> Subject: if_run and wlan_amrr: kernel panics on 8.2-PRERELEASE amd64
> To: freebsd-net@freebsd.org
> Message-ID: <20110118102658.GA3211@gw.zagrebin.ru>
> Content-Type: text/plain; charset=us-ascii
> mostly works (there is an issue with the devices with the 'power save mode'
> enabled),
>
Yes, there is.
Due to lack of documents, I haven't figured out how to add support, how to set
tim, etc.
> enabled), but transmission rate is limited with 1 Mbit/s.
Can you try attached patch and see if tx rate goes up.
AK
-- begin patch --
--- a/dev/usb/wlan/if_run.c +++ b/dev/usb/wlan/if_run.c @@ -2223,12 +2223,15 @@
run_drain_fifo(void *arg) struct ifnet *ifp = sc->sc_ifp; struct
ieee80211_node *ni = sc->sc_ni[0]; /* make compiler happy */ uint32_t stat;
- int retrycnt = 0; + int retrycnt; uint8_t wcid, mcs, pid;
RUN_LOCK_ASSERT(sc, MA_OWNED); for (;;) { + /* clear on every loop */
+ retrycnt = 0; + /* drain Tx status FIFO (maxsize = 16) */ run_read(sc,
RT2860_TX_STAT_FIFO, &stat); DPRINTFN(4, "tx stat 0x%08x\n", stat);
-- end patch --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?174429.26123.qm>
