Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 May 2012 19:11:40 +0200
From:      Bernhard Schmidt <bschmidt@freebsd.org>
To:        freebsd-wireless@freebsd.org
Cc:        freebsd-net@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: [CFT] Ralink RT2860, RT2870, RT3060, RT3090 support
Message-ID:  <CAAgh0_Zk0bAmpROREH%2B1Dz1vVudEgj-N3zGMyvfWXVd0i3bFFA@mail.gmail.com>
In-Reply-To: <201205051251.10431.bschmidt@freebsd.org>
References:  <201205031853.53102.bschmidt@freebsd.org> <20120505105258.28e28803@laptop> <201205051251.10431.bschmidt@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--f46d0401236fea2fa804bf897ab6
Content-Type: text/plain; charset=ISO-8859-1

On Sat, May 5, 2012 at 12:51 PM, Bernhard Schmidt <bschmidt@freebsd.org> wrote:
> Please apply attached patch (also here [1]) on top of the first one,
> it fixes channel switching for >= 3070 (called the wrong function,
> doh..) as well as a bgscan issue.
>
> [1] http://techwires.net/~bschmidt/rt2860_1.diff

And another update [1] on top of the other 2 patches.

* fix TX DMA, a wrong dmat has been used
* add some more PCI IDs
* disable debugging output by default
* disable bgscan until it's sorted out
* a printf is now hidden behind bootverbose

So far it looks quite good, no open issues at the moment, keep on testing! ;)

If nothing new comes up within the next few days I intend to commit
this by the end of the week or something.

[1] http://techwires.net/~bschmidt/rt2860_2.diff

-- 
Bernhard

--f46d0401236fea2fa804bf897ab6
Content-Type: application/octet-stream; name="rt2860_2.diff"
Content-Disposition: attachment; filename="rt2860_2.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_h1z7t8xa1

ZGlmZiAtLWdpdCBzeXMvZGV2L3JhbC9pZl9yYWxfcGNpLmMgc3lzL2Rldi9yYWwvaWZfcmFsX3Bj
aS5jCmluZGV4IDE1YzExYmQuLmMzNDM4YTMgMTAwNjQ0Ci0tLSBzeXMvZGV2L3JhbC9pZl9yYWxf
cGNpLmMKKysrIHN5cy9kZX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