Return-path: Received: from moutng.kundenserver.de ([212.227.126.179]:60843 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754120AbYFIUNX (ORCPT ); Mon, 9 Jun 2008 16:13:23 -0400 Message-ID: <484D8E8D.2030504@scherping.de> (sfid-20080609_221341_515511_C4CA436E) Date: Mon, 09 Jun 2008 22:11:57 +0200 From: Richard Scherping MIME-Version: 1.0 To: Johannes Berg CC: linux-wireless , Zhu Yi , Tomas Winkler Subject: Re: [RFA] iwl4965: support mesh networking References: <1211447482.3698.50.camel@johannes.berg> In-Reply-To: <1211447482.3698.50.camel@johannes.berg> Content-Type: multipart/mixed; boundary="------------020608040604060002030405" Sender: linux-wireless-owner@vger.kernel.org List-ID: This is a multi-part message in MIME format. --------------020608040604060002030405 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Johannes Berg schrieb: > This tries to make iwl4965 support mesh, but it doesn't actually work. > > Here's my s-o-b so anyone else can try to make it work, I haven't > figured out yet what the bug is... > > It seems that the iwlwifi card doesn't beacon, so the mesh state machine > gets stuck. I got o11s mesh to work with iwl4965 some time ago including beaconing and forwarding of packets. Changing channel did not work, though. My patch against the wireless testing tree as of 2008-02-28 is attached, perhaps you find some useful hints in there. Unfortunately, I did not have the time to rebase my work since then... Richard --------------020608040604060002030405 Content-Type: text/x-diff; name="wireless-testing-20080228-o11s-iwlwifi.patch" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="wireless-testing-20080228-o11s-iwlwifi.patch" ZGlmZiAtLWdpdCBhL2RyaXZlcnMvbmV0L3dpcmVsZXNzL2l3bHdpZmkvaXdsLTQ5NjUtcnMu YyBiL2RyaXZlcnMvbmV0L3dpcmVsZXNzL2l3bHdpZmkvaXdsLTQ5NjUtcnMuYwppbmRleCA0 OGE2YTg1Li5mZWFiYzQ4IDEwMDY0NAotLS0gYS9kcml2ZXJzL25ldC93aXJlbGVzcy9pd2x3 aWZpL2l3bC00OTY1LX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