Hi!

I'm trying to set up a mesh network (OPEN mesh network) using the
instructions on https://github.com/cozybit/open80211s/wiki/HOWTO

I'm running a vanilla kernel, but as far as I know the support has
been in the kernel since '11 , so that shouldn't be the issue.
Any ideas on how I could fix this? I want to set it up so that I can
build stuff on top of it.

(Both machines are running hardware with the ath_9k driver which seems
to be the most supported driver for setting up meshes)

This is what I've tried so far:

The shorter version:

root@xyz:/home/yz# service network-manager stop

network-manager stop/waiting

root@xyz:/home/yz# iw --debug dev wlan0 interface add mp0 type mp
mesh_id abcdefgh
root@xyz:/home/yz# iw --debug dev mp0 set channel 2
root@xyz:/home/yz# ifconfig mp0 hw ether 94:a0:c0:b1:11:42
root@xyz:/home/yz# ifconfig mp0 192.168.3.82

root@xyz:/home/yz# iw --debug dev wlan0 interface add mp1 type mp
root@xyz:/home/yz# iw --debug dev mp1 set channel 2
root@xyz:/home/yz# ifconfig mp1 hw ether 94:a0:c0:b1:11:45
root@xyz:/home/yz# ifconfig mp1 192.168.3.84

root@xyz:/home/yz# iw --debug dev mp1 mesh join abcdefgh
root@xyz:/home/yz# iw dev mp0 station dump

root@xyz:/home/yz# iw --debug dev mp1 mesh join abcdefgh
command failed: Operation already in progress (-114)

root@xyz:/home/yz#
-- End of shorter version

At this time, I see "Not connected" If i try to query the interface's
status using link in the iw utility.

I've tried creating these scenarios :

Interface mp0 and mp1 on the SAME machine.
Interface mp0 and mp1 on Different machines.

But in both these situations, I'm not able to ping the IP addresses
from each other.

I have gone through the linux wireless page on iw a few times but that
doesn't seem to offer much help.

Any ideas why the node is not able to connect to the mesh ?
Thanks a lot!

PS - In case someone's interested, this is the longer version of the
same with debug enabled :
(Putting this at the end of the mail so that its not mandatory to scroll down)

root@xyz:/home/yz# iw --debug dev wlan0 interface add mp0 type mp
mesh_id abcdefgh
-- Debug: Sent Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 56
    .nlmsg_type = 24 <0x18>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1410774963
    .nlmsg_pid = 25362
  [PAYLOAD] 40 octets
    07 00 00 00 08 00 03 00 03 00 00 00 08 00 04 00 6d 70 ................mp
    30 00 08 00 05 00 07 00 00 00 0c 00 18 00 61 62 63 64 0.............abcd
    65 66 67 68                                           efgh
---------------------------  END NETLINK MESSAGE   ---------------------------
-- Debug: Received Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 36
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1410774963
    .nlmsg_pid = 25362
  [ERRORMSG] 20 octets
    .error = 0 "Success"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 24 <0x18>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1410774963
    .nlmsg_pid = 25362
---------------------------  END NETLINK MESSAGE   ---------------------------
root@xyz:/home/yz# iw --debug dev mp0 set channel 2
-- Debug: Sent Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 44
    .nlmsg_type = 24 <0x18>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1410775000
    .nlmsg_pid = 25660
  [PAYLOAD] 28 octets
    02 00 00 00 08 00 03 00 0e 00 00 00 08 00 26 00 71 09 ..............&.q.
    00 00 08 00 27 00 00 00 00 00                         ....'.....
---------------------------  END NETLINK MESSAGE   ---------------------------
-- Debug: Received Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 36
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1410775000
    .nlmsg_pid = 25660
  [ERRORMSG] 20 octets
    .error = 0 "Success"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 24 <0x18>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1410775000
    .nlmsg_pid = 25660
---------------------------  END NETLINK MESSAGE   ---------------------------
root@xyz:/home/yz# ifconfig mp0 hw ether 94:a0:c0:b1:11:42
root@xyz:/home/yz# ifconfig mp0 192.168.3.82
root@xyz:/home/yz# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8969 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8969 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:977314 (977.3 KB)  TX bytes:977314 (977.3 KB)

mp0       Link encap:Ethernet  HWaddr 94:a0:c0:b1:11:42
          inet addr:192.168.3.82  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::96a0:c0ff:feb1:1142/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:10108 (10.1 KB)

root@xyz:/home/yz# iw --debug dev wlan0 interface add mp1 type mp
-- Debug: Sent Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 44
    .nlmsg_type = 24 <0x18>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1410775080
    .nlmsg_pid = 26229
  [PAYLOAD] 28 octets
    07 00 00 00 08 00 03 00 03 00 00 00 08 00 04 00 6d 70 ................mp
    31 00 08 00 05 00 07 00 00 00                         1.........
---------------------------  END NETLINK MESSAGE   ---------------------------
-- Debug: Received Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 36
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1410775080
    .nlmsg_pid = 26229
  [ERRORMSG] 20 octets
    .error = 0 "Success"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 24 <0x18>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1410775080
    .nlmsg_pid = 26229
---------------------------  END NETLINK MESSAGE   ---------------------------
root@xyz:/home/yz# iw --debug dev mp1 set channel 2
-- Debug: Sent Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 44
    .nlmsg_type = 24 <0x18>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1410775098
    .nlmsg_pid = 26387
  [PAYLOAD] 28 octets
    02 00 00 00 08 00 03 00 0f 00 00 00 08 00 26 00 71 09 ..............&.q.
    00 00 08 00 27 00 00 00 00 00                         ....'.....
---------------------------  END NETLINK MESSAGE   ---------------------------
-- Debug: Received Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 36
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1410775098
    .nlmsg_pid = 26387
  [ERRORMSG] 20 octets
    .error = 0 "Success"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 24 <0x18>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1410775098
    .nlmsg_pid = 26387
---------------------------  END NETLINK MESSAGE   ---------------------------
root@xyz:/home/yz# ifconfig mp1 hw ether 94:a0:c0:b1:11:45
root@xyz:/home/yz# ifconfig mp1 192.168.3.84
root@xyz:/home/yz# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:9049 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9049 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:983682 (983.6 KB)  TX bytes:983682 (983.6 KB)

mp0       Link encap:Ethernet  HWaddr 94:a0:c0:b1:11:42
          inet addr:192.168.3.82  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::96a0:c0ff:feb1:1142/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:11628 (11.6 KB)

mp1       Link encap:Ethernet  HWaddr 94:a0:c0:b1:11:45
          inet addr:192.168.3.84  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::96a0:c0ff:feb1:1145/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  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:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@xyz:/home/yz# iw --debug dev mp1 mesh join abcdefgh
-- Debug: Sent Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 40
    .nlmsg_type = 24 <0x18>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1410775169
    .nlmsg_pid = 26812
  [PAYLOAD] 24 octets
    44 00 00 00 08 00 03 00 0f 00 00 00 0c 00 18 00 61 62 D...............ab
    63 64 65 66 67 68                                     cdefgh
---------------------------  END NETLINK MESSAGE   ---------------------------
-- Debug: Received Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 36
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1410775169
    .nlmsg_pid = 26812
  [ERRORMSG] 20 octets
    .error = 0 "Success"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 24 <0x18>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1410775169
    .nlmsg_pid = 26812
---------------------------  END NETLINK MESSAGE   ---------------------------
root@xyz:/home/yz# iw dev mp0 link
Not connected.
root@xyz:/home/yz# iw dev mp0 info
Interface mp0
    ifindex 14
    type mesh point
    wiphy 7
root@xyz:/home/yz# iw dev mp1 info
Interface mp1
    ifindex 15
    type mesh point
    wiphy 7
root@xyz:/home/yz# iw dev mp0 station dump
root@xyz:/home/yz# iw --debug dev mp1 mesh join abcdefgh
-- Debug: Sent Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 40
    .nlmsg_type = 24 <0x18>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1410775258
    .nlmsg_pid = 27519
  [PAYLOAD] 24 octets
    44 00 00 00 08 00 03 00 0f 00 00 00 0c 00 18 00 61 62 D...............ab
    63 64 65 66 67 68                                     cdefgh
---------------------------  END NETLINK MESSAGE   ---------------------------
-- Debug: Received Message:
--------------------------   BEGIN NETLINK MESSAGE ---------------------------
  [HEADER] 16 octets
    .nlmsg_len = 60
    .nlmsg_type = 2 <ERROR>
    .nlmsg_flags = 0 <>
    .nlmsg_seq = 1410775258
    .nlmsg_pid = 27519
  [ERRORMSG] 20 octets
    .error = -114 "Operation already in progress"
  [ORIGINAL MESSAGE] 16 octets
    .nlmsg_len = 16
    .nlmsg_type = 24 <0x18>
    .nlmsg_flags = 5 <REQUEST,ACK>
    .nlmsg_seq = 1410775258
    .nlmsg_pid = 27519
---------------------------  END NETLINK MESSAGE   ---------------------------
command failed: Operation already in progress (-114)

Regards,
Ashish Gupta
_______________________________________________
Devel mailing list
[email protected]
http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel

Reply via email to