From: Kazuki Shimada <zukky@bb.banban.jp>
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-trunk + ath5k + batman-adv-devel in my case
Date: Tue, 31 Aug 2010 16:03:38 +0900 [thread overview]
Message-ID: <4C7CA94A.7020103@bb.banban.jp> (raw)
In-Reply-To: <201008271159.28345.sven.eckelmann@gmx.de>
Hi, Sven.
Thank you for your patch and sorry to be late to reply.
I updated the revision to r1780.
The problem is gone.
After network restart, wlan interfaces under bat0 are still deactivated.
But it's not big problem. "/etc/init.d/batman-adv restart" makes them
activated.
Thanks a lot,
Kazuki Shimada
P.S.
When activating network interfaces under bat0, What about forcing their
mtu value to 1527?
root@OpenWrt:/# /etc/init.d/network restart
ifconfig: SIOCSIFADDR: No such device
root@OpenWrt:/# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
br-lan no wireless extensions.
wlan0 IEEE 802.11abg ESSID:"mesh1"
Mode:Ad-Hoc Frequency:2.412 GHz Cell: 5E:8D:F2:44:E6:C4
Tx-Power=20 dBm
RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
wlan1 IEEE 802.11abg ESSID:"mesh2"
Mode:Ad-Hoc Frequency:2.437 GHz Cell: 7A:69:F0:4A:67:1D
Tx-Power=27 dBm
RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
root@OpenWrt:/# ifconfig
br-lan Link encap:Ethernet HWaddr 00:D0:12:03:44:91
inet addr:192.168.2.1 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1472 (1.4 KiB) TX bytes:1649 (1.6 KiB)
eth0 Link encap:Ethernet HWaddr 00:D0:12:03:44:91
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:117099 errors:0 dropped:0 overruns:0 frame:0
TX packets:211663 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:21594274 (20.5 MiB) TX bytes:308962021 (294.6 MiB)
eth1 Link encap:Ethernet HWaddr 00:D0:12:13:44:91
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:200 (200.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 00:0B:6B:2D:F4:91
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:504 (504.0 B) TX bytes:0 (0.0 B)
wlan1 Link encap:Ethernet HWaddr 00:0B:6B:2C:15:E3
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:696 (696.0 B) TX bytes:0 (0.0 B)
root@OpenWrt:/# ifconfig wlan0 mtu 1527
root@OpenWrt:/# ifconfig wlan1 mtu 1527
root@OpenWrt:/# batctl if
root@OpenWrt:/# batctl o
Error - the folder '/sys/kernel/debug//batman_adv/bat0/' was not found
within the sys filesystem
Please make sure that the batman-adv kernel module is loaded
root@OpenWrt:/# lsmod |grep batman
batman_adv 64982 0
root@OpenWrt:/# /etc/init.d/batman-adv restart
root@OpenWrt:/# batctl if
wlan0: active
wlan1: active
root@OpenWrt:/#
(2010/08/27 18:59), Sven Eckelmann wrote:
> Kazuki Shimada wrote:
> [...]
>> "exit softif_destroy\n" is not printed out.
>> unregister_netdev?
> Thanks, perfect work. This is a new bug which was added in the multiple mesh
> patchset. The problem is that the rtnl lock is taken and we still use
> unregister_netdev when we process an event using hard_if_event.
>
> I have to check other code paths to ensure that I don't destroy other things,
> but a workaround for you would be to use unregister_netdevice instead of
> unregister_netdev in that situation. (Just check v0.2.1-30-g992bfd1 for more
> information on that subject).
>
> The problem is that softif_destroy is also called when we unloading the module
> - which means that it assumes that the rtnl lock is taken (which it is not
> when you don't use unregister_netdev there). So I will work on a complete fix
> and Cc it to you.
>
> Thanks,
> Sven
next prev parent reply other threads:[~2010-08-31 7:03 UTC|newest]
Thread overview: 20+ 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 [this message]
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 ` [B.A.T.M.A.N.] Problem openWRT "backfire" and "kmod-batman-adv" Marek Lindner
2010-08-16 16:51 ` 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=4C7CA94A.7020103@bb.banban.jp \
--to=zukky@bb.banban.jp \
--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.