From: Marek Lindner <lindner_marek@yahoo.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Subject: Re: [B.A.T.M.A.N.] Problem openWRT "backfire" and "kmod-batman-adv"
Date: Sat, 14 Aug 2010 19:26:56 +0200 [thread overview]
Message-ID: <201008141926.57132.lindner_marek@yahoo.de> (raw)
In-Reply-To: <4C6437BF.9080909@web.de>
[-- Attachment #1: Type: Text/Plain, Size: 425 bytes --]
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
[-- Attachment #2: 01-notify.patch --]
[-- Type: text/x-patch, Size: 988 bytes --]
--- 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
next prev parent reply other threads:[~2010-08-14 17:26 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 18:04 [B.A.T.M.A.N.] Problem openWRT "backfire" and "kmod-batman-adv" Tim Glaremin
2010-08-13 3:24 ` Sven Eckelmann
2010-08-20 7:29 ` [B.A.T.M.A.N.] problem openwrt-trunk + ath5k + batman-adv-devel in my case Lemonde
2010-08-20 9:00 ` Sven Eckelmann
2010-08-20 16:24 ` Marek Lindner
2010-08-20 17:08 ` [B.A.T.M.A.N.] Where do we stand on working systems? Jon Roland
[not found] ` <AANLkTim6yVL8q=fXoFOu23ZBMpqaMHiheCV13-6U99+s@mail.gmail.com>
2010-08-20 20:10 ` Jon Roland
2010-08-21 5:01 ` [B.A.T.M.A.N.] problem openwrt-trunk + ath5k + batman-adv-devel in my case Kazuki Shimada
2010-08-21 6:01 ` Marek Lindner
2010-08-26 6:51 ` Kazuki Shimada
2010-08-26 8:28 ` Sven Eckelmann
2010-08-27 2:20 ` Kazuki Shimada
2010-08-27 9:59 ` Sven Eckelmann
2010-08-31 7:03 ` Kazuki Shimada
2010-08-31 9:32 ` Sven Eckelmann
[not found] ` <4C7E22B2.1000707@bb.banban.jp>
2010-09-01 10:48 ` Sven Eckelmann
2010-08-31 10:37 ` Marek Lindner
2010-09-01 10:04 ` Kazuki Shimada
2010-08-14 17:26 ` Marek Lindner [this message]
2010-08-16 16:51 ` [B.A.T.M.A.N.] Problem openWRT "backfire" and "kmod-batman-adv" Marek Lindner
[not found] <mailman.33.1282337388.934.b.a.t.m.a.n@lists.open-mesh.org>
2010-08-21 8:09 ` Tim
2010-08-21 8:15 ` Sven Eckelmann
-- strict thread matches above, loose matches on Subject: below --
2010-08-18 6:42 Tim
[not found] ` <201008201211.51847.sven.eckelmann@gmx.de>
[not found] ` <4C6E8B79.7040801@web.de>
2010-08-20 14:44 ` Sven Eckelmann
2010-08-20 15:38 ` Sven Eckelmann
[not found] ` <4C6F5950.8070204@bb.banban.jp>
2010-08-21 6:19 ` Sven Eckelmann
2010-08-17 9:20 Tim
2010-08-17 9:27 ` Sven Eckelmann
2010-08-17 9:45 ` Tim
2010-08-17 9:51 ` Sven Eckelmann
2010-08-12 10:14 Tim Glaremin
2010-08-12 10:30 ` Marek Lindner
2010-08-12 10:32 ` Sven Eckelmann
[not found] <mailman.1.1281002401.15834.b.a.t.m.a.n@lists.open-mesh.org>
2010-08-11 10:47 ` Tim
2010-08-11 11:14 ` Marek Lindner
2010-08-11 11:20 ` Sven Eckelmann
2010-08-11 14:23 ` Tim
2010-08-11 14:52 ` Sven Eckelmann
2010-08-04 9:21 Tim
2010-08-04 9:34 ` Sven Eckelmann
2010-08-04 22:03 ` Marek Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201008141926.57132.lindner_marek@yahoo.de \
--to=lindner_marek@yahoo.de \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.