From owner-freebsd-wireless@FreeBSD.ORG Sun Jan 1 01:30:16 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B830106566B for ; Sun, 1 Jan 2012 01:30:16 +0000 (UTC) (envelope-from nsl03@my.fsu.edu) Received: from DB3EHSOBE003.bigfish.com (db3ehsobe003.messaging.microsoft.com [213.199.154.141]) by mx1.freebsd.org (Postfix) with ESMTP id 696CD8FC0A for ; Sun, 1 Jan 2012 01:30:15 +0000 (UTC) Received: from mail12-db3-R.bigfish.com (10.3.81.250) by DB3EHSOBE003.bigfish.com (10.3.84.23) with Microsoft SMTP Server id 14.1.225.23; Sun, 1 Jan 2012 01:15:07 +0000 Received: from mail12-db3 (localhost [127.0.0.1]) by mail12-db3-R.bigfish.com (Postfix) with ESMTP id 7AF066C02F7; Sun, 1 Jan 2012 01:15:07 +0000 (UTC) X-SpamScore: -15 X-BigFish: PS-15(zz9371Ic85fh1447M1432N98dKzz1202hzzz2fh2a8h668h839h34h) X-Forefront-Antispam-Report: CIP:207.46.198.81; KIP:(null); UIP:(null); IPV:NLI; H:CH1PRD0502HT005.namprd05.prod.outlook.com; RD:none; EFVD:NLI Received-SPF: pass (mail12-db3: domain of my.fsu.edu designates 207.46.198.81 as permitted sender) client-ip=207.46.198.81; envelope-from=nsl03@my.fsu.edu; helo=CH1PRD0502HT005.namprd05.prod.outlook.com ; .outlook.com ; Received: from mail12-db3 (localhost.localdomain [127.0.0.1]) by mail12-db3 (MessageSwitch) id 1325380507330628_27474; Sun, 1 Jan 2012 01:15:07 +0000 (UTC) Received: from DB3EHSMHS009.bigfish.com (unknown [10.3.81.241]) by mail12-db3.bigfish.com (Postfix) with ESMTP id 4C133340045; Sun, 1 Jan 2012 01:15:07 +0000 (UTC) Received: from CH1PRD0502HT005.namprd05.prod.outlook.com (207.46.198.81) by DB3EHSMHS009.bigfish.com (10.3.87.109) with Microsoft SMTP Server (TLS) id 14.1.225.23; Sun, 1 Jan 2012 01:15:07 +0000 Received: from CH1PRD0502MB118.namprd05.prod.outlook.com ([169.254.4.150]) by CH1PRD0502HT005.namprd05.prod.outlook.com ([10.28.29.225]) with mapi id 14.15.0029.001; Sun, 1 Jan 2012 01:15:06 +0000 From: "Lay, Nathan" To: "freebsd-wireless@freebsd.org" Thread-Topic: ath "stops working" in hostap mode Thread-Index: AczIH3ff9bH4FEEXTfmSyjYG+0XJfwAAaWMAAAAMC6Y= Date: Sun, 1 Jan 2012 01:15:05 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: x-originating-ip: [68.35.230.205] Content-Type: multipart/mixed; boundary="_003_A838E171DD71354E99079424FC4F7DDB182A9042CH1PRD0502MB118_" MIME-Version: 1.0 X-OriginatorOrg: my.fsu.edu Cc: Subject: RE: ath "stops working" in hostap mode X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jan 2012 01:30:16 -0000 --_003_A838E171DD71354E99079424FC4F7DDB182A9042CH1PRD0502MB118_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Adrian,=0A= Thanks for the prompt response. Bumping the interface up and down does not = fix it. Destroying and recreating the interface does not fix it either. The= interface is completely unresponsive when this problem arises. As far as I= can tell, it does not transmit (it vanishes from view from all other devic= es).=0A= =0A= I do not have ATH_ENABLE_11N compiled in. Would this improve stability? The= interface shows that it is using 11g mode with background scanning turned = off. Here is exactly how it is configured and used:=0A= =0A= create_args_wlan0=3D"wlanmode hostap -bgscan"=0A= autobridge_bridge0=3D"wlan0 lan0"=0A= =0A= It also sits behind pf (I saw pf mentioned in a similar message about ath).= =0A= =0A= I've installed athstats. Attached is the output.=0A= =0A= Best Regards,=0A= Nathan Lay=0A= =0A= ________________________________________=0A= From: Adrian Chadd [adrian.chadd@gmail.com]=0A= Sent: Saturday, December 31, 2011 8:03 PM=0A= To: Lay, Nathan=0A= Subject: Re: ath "stops working" in hostap mode=0A= =0A= Hi,=0A= =0A= I'd prefer you to email the -wireless list so we can debug this in public. = :)=0A= =0A= On 31 December 2011 16:59, Lay, Nathan wrote:=0A= > Hi Adrian,=0A= > I saw in the PR and mailing list that someone else seemed to have problem= s=0A= > with ath in hostap mode. I have no idea what causes it as it happens for = no=0A= > apparent reason after an arbitrary amount of time. The first time I saw t= his=0A= > problem, it happened after 1 day of uptime. The next time, it happened af= ter=0A= > a week of uptime. A reboot is required to remedy the problem although I'm= =0A= > not certain if reloading the module would solve the problem (I did not ha= ve=0A= > it compiled as a loadable module).=0A= =0A= Is this something that has been going on for a while? Or is it a recent thi= ng?=0A= =0A= > uname:=0A= > FreeBSD RADIO.LOCAL 9.0-PRERELEASE FreeBSD 9.0-PRERELEASE #2: Sat Dec 31= =0A= > 01:19:47 EST 2011 nslay@RADIO.LOCAL:/usr/obj/usr/src/sys/RADIO amd64= =0A= >=0A= > I don't know the SVN revision as I still have it setup to use CVS. Is the= re=0A= > anyway I can get the SVN revision from CVS? All I can tell you is that I= =0A= > updated the sources on the 23rd when the security advisories were issued.= =0A= =0A= There's no easy way, no. it's just easier to work from subversion. :)=0A= =0A= > Here's what I have:=0A= > ath0: mem 0xfe9f0000-0xfe9fffff irq 16 at device 0.0 on pc= i1=0A= > ath0: AR5418 mac 12.10 RF2133 phy 8.1=0A= >=0A= > I noticed that you claim the AR5416 is crap. I might just look for an AR9= xxx=0A= > card instead.=0A= =0A= It's not "crap", it's just an early version of their 802.11n stuff and=0A= the newer stuff is much more stable.=0A= =0A= > I'm not terribly familiar with the ath sysctl tunables, but here's someth= ing=0A= > that looks unusual:=0A= > dev.ath.0.stats.rx_phy_err.31: 30190=0A= =0A= Just ignore that unless it's actually continuing to rise. :)=0A= =0A= > (All others are 0 count)=0A= >=0A= > I also noticed this tunable:=0A= > dev.ath.0.hal.ar5416_biasadj=0A= >=0A= > Is this something relevant to me?=0A= >=0A= > I am fluent in C. Is there anywhere specific I could look through?=0A= =0A= The thing to do is figure out:=0A= =0A= * what you mean by "stops working" ;-)=0A= * is it a tx problem, an rx problem, or both=0A= * make sure you've not enabled 11n (ie, you haven't compiled the=0A= kernel with ATH_ENABLE_11N) as that could be part of it, even on -9.=0A= * do any counters change - compile up sys/tools/tools/ath/athstats and=0A= use that to start to figure out what's going on.=0A= * does bumping the interface fix things - ie ifconfig wlanX down;=0A= ifconfig wlanX up?=0A= =0A= =0A= =0A= Adrian=0A= =0A= --_003_A838E171DD71354E99079424FC4F7DDB182A9042CH1PRD0502MB118_ Content-Type: text/plain; name="athstats.txt" Content-Description: athstats.txt Content-Disposition: attachment; filename="athstats.txt"; size=842; creation-date="Sun, 01 Jan 2012 01:11:20 GMT"; modification-date="Sun, 01 Jan 2012 01:11:20 GMT" Content-ID: <8f243d47-9bca-4a02-ab9d-ab0101309f00> Content-Transfer-Encoding: base64 YXRoc3RhdHM6IGF0aDA6IEludmFsaWQgYXJndW1lbnQKYXRoc3RhdHM6IGF0aDA6IEludmFsaWQg YXJndW1lbnQKMjY0MzY5OSAgZGF0YSBmcmFtZXMgcmVjZWl2ZWQKNjgzNzgxICAgZGF0YSBmcmFt ZXMgdHJhbnNtaXQKNDY3ICAgICAgdHggZnJhbWVzIHdpdGggYW4gYWx0ZXJuYXRlIHJhdGUKOTY5 MjEgICAgbG9uZyBvbi1jaGlwIHR4IHJldHJpZXMKMTU0MDAgICAgdHggZmFpbGVkICdjdXogdG9v IG1hbnkgcmV0cmllcwo4MiAgICAgICBzdHVjayBiZWFjb24gY29uZGl0aW9ucwoxMk0gICAgICBj dXJyZW50IHRyYW5zbWl0IHJhdGUKMTQwODMgICAgdHggZnJhbWVzIHdpdGggbm8gYWNrIG1hcmtl ZAo2NDQyOTggICB0eCBmcmFtZXMgd2l0aCBzaG9ydCBwcmVhbWJsZQoxNjA2OTkgICByeCBmYWls ZWQgJ2N1eiBvZiBiYWQgQ1JDCjMwNjU4ICAgIHJ4IGZhaWxlZCAnY3V6IG9mIFBIWSBlcnIKICAg IDMwNjU4ICAgIENDSyByZXN0YXJ0CjY1ODA1MSAgIGJlYWNvbnMgdHJhbnNtaXR0ZWQKMjI0NiAg ICAgcGVyaW9kaWMgY2FsaWJyYXRpb25zCi0wLyswICAgIFRETUEgc2xvdCBhZGp1c3QgKHVzZWNz LCBzbW9vdGhlZCkKNTAgICAgICAgcnNzaSBvZiBsYXN0IGFjawoyNyAgICAgICBhdmcgcmVjdiBy c3NpCi05NiAgICAgIHJ4IG5vaXNlIGZsb29yCjI1NDE0ICAgIHR4IGZyYW1lcyB0aHJvdWdoIHJh dyBhcGkKMTE1OTYgICAgY2FicSBmcmFtZXMgdHJhbnNtaXR0ZWQKNjYxOSAgICAgY2FicSB4bWl0 IG92ZXJmbG93ZWQgYmVhY29uIGludGVydmFsCkFudGVubmEgcHJvZmlsZToKWzBdIHR4ICAgNjY4 MzUyIHJ4ICAgMTYyMTA1ClsxXSB0eCAgICAgICAgMCByeCAgMjQ4MTU5NAo= --_003_A838E171DD71354E99079424FC4F7DDB182A9042CH1PRD0502MB118_ Content-Type: text/plain; name="ifconfig.txt" Content-Description: ifconfig.txt Content-Disposition: attachment; filename="ifconfig.txt"; size=550; creation-date="Sun, 01 Jan 2012 01:13:52 GMT"; modification-date="Sun, 01 Jan 2012 01:13:52 GMT" Content-ID: Content-Transfer-Encoding: base64 d2xhbjA6IGZsYWdzPTg5NDM8VVAsQlJPQURDQVNULFJVTk5JTkcsUFJPTUlTQyxTSU1QTEVYLE1V TFRJQ0FTVD4gbWV0cmljIDAgbXR1IDE1MDAKCWV0aGVyIDFjOmFmOmY3OmYzOjQyOmMxCglpbmV0 NiBmZTgwOjoxZWFmOmY3ZmY6ZmVmMzo0MmMxJXdsYW4wIHByZWZpeGxlbiA2NCB0ZW50YXRpdmUg c2NvcGVpZCAweDEwIAoJbmQ2IG9wdGlvbnM9Mjk8UEVSRk9STU5VRCxJRkRJU0FCTEVELEFVVE9f TElOS0xPQ0FMPgoJbWVkaWE6IElFRUUgODAyLjExIFdpcmVsZXNzIEV0aGVybmV0IGF1dG9zZWxl Y3QgbW9kZSAxMWcgPGhvc3RhcD4KCXN0YXR1czogcnVubmluZwoJc3NpZCBMYW1wIGNoYW5uZWwg NSAoMjQzMiBNSHogMTFnKSBic3NpZCAxYzphZjpmNzpmMzo0MjpjMQoJcmVnZG9tYWluIEZDQyBp bmRvb3IgZWNtIGF1dGhtb2RlIFdQQSBwcml2YWN5IE1JWEVEIGRlZnR4a2V5IDIKCUFFUy1DQ00g MjoxMjgtYml0IEFFUy1DQ00gMzoxMjgtYml0IHR4cG93ZXIgMjcgc2NhbnZhbGlkIDYwCglwcm90 bW9kZSBDVFMgd21lIGJ1cnN0IGR0aW1wZXJpb2QgMSAtZGZzCg== --_003_A838E171DD71354E99079424FC4F7DDB182A9042CH1PRD0502MB118_--