Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 May 2012 19:17:24 +0200
From:      Bernhard Schmidt <bschmidt@freebsd.org>
To:        Warren Block <wblock@wonkity.com>
Cc:        wireless@freebsd.org
Subject:   Re: Realtek RTL8187B no longer working on 9-stable
Message-ID:  <CAAgh0_bu56J_UE=usfOeLtMTiR30=beSQ4QhwqkXKY_FY4y3Eg@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1205092030350.14584@wonkity.com>
References:  <alpine.BSF.2.00.1205092030350.14584@wonkity.com>

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

On Thu, May 10, 2012 at 4:38 AM, Warren Block <wblock@wonkity.com> wrote:
> The Realtek RTL8187B used to work with 8-stable and pre-release 9.
> It doesn't work with 9-stable any more, wpa_supplicant hangs and lags and
> never associates. =A0It does manage to scan and list access points.
>
> This is with 9.0-STABLE FreeBSD 9.0-STABLE #0 r234759, amd64.

I have attached patch in my tree for quite some time now, not sure it
helps with what you are seeing though.

The "hang" you are referring to is a series of quite annoying pause() calls=
.

--=20
Bernhard

--bcaec554073623eb2c04bfb1cb38
Content-Type: application/octet-stream; name="urtw.diff"
Content-Disposition: attachment; filename="urtw.diff"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_h222ydx20

SW5kZXg6IHN5cy9kZXYvdXNiL3dsYW4vaWZfdXJ0d3Zhci5oCj09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHN5cy9k
ZXYvdXNiL3dsYW4vaWZfdXJ0d3Zhci5oCShyZXZpc2lvbiAyMzUyMzIpCisrKyBzeXMvZGV2L3Vz
Yi93bGFuL2lmX3VydHd2YXIuaAkod29ya2luZyBjb3B5KQpAQCAtMTUyLDcgKzE1Miw2IEBAIHN0
cnVjdCB1cnR3X3NvZnRjIHsKIAl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JCQkJaWVlZTgwMjEx
X2ZyZWVfbm9kZShkYXRhLT5uaSk7CisJCQkJZGF0YS0+bmkgPSBOVUxMOworCQkJCWlmcC0+aWZf
b2Vycm9ycysrOworCQkJfQorCQkJaWYgKGRhdGEtPm0gIT0gTlVMTCkgeworCQkJCW1fZnJlZW0o
ZGF0YS0+bSk7CisJCQkJZGF0YS0+bSA9IE5VTEw7CisJCQl9CisJCQl1c2JkX3hmZXJfc2V0X3By
aXYoeGZlciwgTlVMTCk7CisJCQlTVEFJTFFfSU5TRVJUX1RBSUwoJnNjLT5zY190eF9pbmFjdGl2
ZSwgZGF0YSwgbmV4dCk7CiAJCX0KIAkJaWYgKGVycm9yICE9IFVTQl9FUlJfQ0FOQ0VMTEVEKSB7
CisJCQlpZiAoZXJyb3IgPT0gVVNCX0VSUl9USU1FT1VUKSB7CisJCQkJZGV2aWNlX3ByaW50Zihz
Yy0+c2NfZGV2LCAiZGV2aWNlIHRpbWVvdXRcbiIpOworCQkJCXJldHVybjsKKwkJCX0KIAkJCXVz
YmRfeGZlcl9zZXRfc3RhbGwoeGZlcik7CiAJCQlnb3RvIHNldHVwOwogCQl9Cg==
--bcaec554073623eb2c04bfb1cb38--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAgh0_bu56J_UE=usfOeLtMTiR30=beSQ4QhwqkXKY_FY4y3Eg>