if_run and wlan_amrr: kernel panics on 8.2-PRERELEASE amd64

PseudoCylon moonlightakkiy at yahoo.ca
Wed Jan 19 09:23:19 UTC 2011


> Message:  19
> Date: Tue, 18 Jan 2011 13:26:58 +0300
> From: Alexander Zagrebin <alex at zagrebin.ru>
> Subject: if_run and  wlan_amrr: kernel panics on 8.2-PRERELEASE amd64
> To: freebsd-net at freebsd.org
> Message-ID:  <20110118102658.GA3211 at 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 --





More information about the freebsd-net mailing list