From patchwork Sat Aug 14 17:26:56 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 297 Return-Path: Received: from smtp131.mail.ukl.yahoo.com (smtp131.mail.ukl.yahoo.com [77.238.184.62]) by open-mesh.net (Postfix) with SMTP id 3091E154545 for ; Sat, 14 Aug 2010 19:27:22 +0200 (CEST) Received: (qmail 88093 invoked from network); 14 Aug 2010 17:27:21 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:Date:User-Agent:References:In-Reply-To:MIME-Version:Content-Type:Message-Id; b=AyvPexrMNoDuI1IeCB0Ira4qAjbom8iCAvWiEPwcRd+K7iLtGkVW0g/rHnbI5prhU2WKvn8tQPNQNJmTdVGRx2IEzP+rm+z29b1wkhFZbpwLWOjqjBAQjElKUdyoschb+cVNVrFUdrWX5LVTSRxy6QMQ5p0LB9WesckOYMkrRhM= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1281806841; bh=iFjz4I4ggiZa+HhEZXTPfljsP8Lul7kuG7Ag8nlRuM4=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:Date:User-Agent:References:In-Reply-To:MIME-Version:Content-Type:Message-Id; b=Iu2oQL4jFxk8j6xzHXeJpoXYqb8x7ExQwTOFXwzb5iINBV8LE1qT2FOVLUPb7w3dYjugM8eijcrqo23R+0GJ2Zey8CqUQDsiWzqE/XwPqNVGBBA7I4CnS5CojeUOLBTihGH2pxbh+ik4cXp6D+hr74rdChUuJE3rB6IsJOsLXy4= Received: from turgot.localnet (lindner_marek@92.225.140.65 with plain) by smtp131.mail.ukl.yahoo.com with SMTP; 14 Aug 2010 17:27:20 +0000 GMT X-Yahoo-SMTP: tW.h3tiswBBMXO2coYcbPigGD5Lt6zY_.Zc- X-YMail-OSG: Hui2FzMVM1m2zQABP3N.00H65.CAwnvPSrjG4ynkPysrmx0 s.l55NCMlvMNuhvkqKlDhf.FdAFABJ0QhM48nIfUghQCMiN8YnlTT1RpA5CE XOpQYN94ZmBr88tGkgUmikKYbQ3pucdfORPFym4AlgRPNB59obpl4bxEsUHU 4r0arlt5wM8eByKWPhl0sOyTSfNRz4aR8iuVFyn.lWkmiNcp71Lt0BFEVnSS AApcKnsrEv1gw59hhpvlWJzSih7a3PyHpZuZHmkLkt_UuRUlgSsONRmVqSwK xbZFSVKF0rSi7yKM4GsN5Tpbp8wTNeVAmdAHeKpE5_eAlSzC4Ttyf X-Yahoo-Newman-Property: ymail-3 From: Marek Lindner To: "The list for a Better Approach To Mobile Ad-hoc Networking" Date: Sat, 14 Aug 2010 19:26:56 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.32-5-amd64; KDE/4.4.5; x86_64; ; ) References: <4C6437BF.9080909@web.de> In-Reply-To: <4C6437BF.9080909@web.de> MIME-Version: 1.0 Message-Id: <201008141926.57132.lindner_marek@yahoo.de> Subject: Re: [B.A.T.M.A.N.] Problem openWRT "backfire" and "kmod-batman-adv" X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Aug 2010 17:27:22 -0000 On Thursday 12 August 2010 20:04:47 Tim Glaremin wrote: > Hope it helps.... The part Marek quoted at least did change :) Yes, it did. Could you please copy the attached patch into your batman-advanced patches folder and verify whether it fixes your problem ? This document explains the location of that folder and how to rebuild the package: http://www.open-mesh.org/wiki/building-batman-adv-with-openwrt Regards, Marek --- a/hard-interface.c +++ b/hard-interface.c @@ -457,15 +457,24 @@ static int hard_if_event(struct notifier_block *this, struct batman_if *batman_if = get_batman_if_by_netdev(net_dev); struct bat_priv *bat_priv; - if (!batman_if) - batman_if = hardif_add_interface(net_dev); + if (!batman_if) { + switch (event) { + case NETDEV_REGISTER: + case NETDEV_UP: + case NETDEV_GOING_DOWN: + case NETDEV_DOWN: + case NETDEV_CHANGENAME: + case NETDEV_CHANGEADDR: + batman_if = hardif_add_interface(net_dev); + default: + break; + } + } if (!batman_if) goto out; switch (event) { - case NETDEV_REGISTER: - break; case NETDEV_UP: hardif_activate_interface(batman_if); break; @@ -476,8 +485,6 @@ static int hard_if_event(struct notifier_block *this, case NETDEV_UNREGISTER: hardif_remove_interface(batman_if); break; - case NETDEV_CHANGENAME: - break; case NETDEV_CHANGEADDR: if (batman_if->if_status == IF_NOT_IN_USE) goto out; -- 1.7.1