i did some more testing and now i am more confused..
removed the CT drivers and replaced with the non-ct on both routers
archer c7:
- kmod-ath10k - 4.19.79+5.4-rc2-1-1
- ath10k-firmware-qca988x - 20190815-1
1043:
- kmod-ath10k - 4.19.79+5.4-rc2-1-1
with no encryption all works fine:
1043 gets connected to the mesh and to the internet:
root@OpenWrt2:~# logread | fgrep mesh
Fri Oct 25 10:05:25 2019 user.notice mac80211: Failed command: iw dev mesh0 set channel 6 HT40
Fri Oct 25 10:05:29 2019 kern.info kernel: [ 34.850851] IPv6: ADDRCONF(NETDEV_UP): mesh0: link is not ready
Fri Oct 25 10:05:29 2019 kern.info kernel: [ 35.090092] IPv6: ADDRCONF(NETDEV_CHANGE): mesh0: link becomes ready
Fri Oct 25 10:05:29 2019 daemon.notice netifd: Network device 'mesh0' link is up
Fri Oct 25 10:05:29 2019 daemon.notice netifd: Interface 'nwi_mesh0' is enabled
Fri Oct 25 10:05:29 2019 daemon.notice netifd: Interface 'nwi_mesh0' has link connectivity
Fri Oct 25 10:05:29 2019 daemon.notice netifd: Interface 'nwi_mesh0' is setting up now
Fri Oct 25 10:05:30 2019 kern.info kernel: [ 35.359038] batman_adv: bat0: Adding interface: mesh0
Fri Oct 25 10:05:30 2019 kern.info kernel: [ 35.364154] batman_adv: bat0: Interface activated: mesh0
Fri Oct 25 10:05:30 2019 daemon.notice netifd: Interface 'nwi_mesh0' is now up
root@OpenWrt2:~# batctl o
[B.A.T.M.A.N. adv openwrt-2019.3-0, MainIF/MAC: mesh0/54:e6:fc:9a:36:8e (bat0/d2:11:b8:85:f4:3c BATMAN_IV)]
Originator last-seen (#/255) Nexthop [outgoingIF]
* 60:e3:27:78:85:37 0.460s (241) 60:e3:27:78:85:37 [ mesh0]
root@OpenWrt2:~# batctl n
[B.A.T.M.A.N. adv openwrt-2019.3-0, MainIF/MAC: mesh0/54:e6:fc:9a:36:8e (bat0/d2:11:b8:85:f4:3c BATMAN_IV)]
IF Neighbor last-seen
mesh0 60:e3:27:78:85:37 0.240s
root@OpenWrt2:~# ping -c 3 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes
64 bytes from 192.168.2.1: seq=0 ttl=64 time=4.016 ms
64 bytes from 192.168.2.1: seq=1 ttl=64 time=2.295 ms
64 bytes from 192.168.2.1: seq=2 ttl=64 time=3.537 ms
--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 2.295/3.282/4.016 ms
root@OpenWrt2:~# batctl ping -c 3 192.168.2.1
PING 192.168.2.1 (60:e3:27:78:85:37) 20(48) bytes of data
20 bytes from 192.168.2.1 icmp_seq=1 ttl=50 time=1.22 ms
20 bytes from 192.168.2.1 icmp_seq=2 ttl=50 time=0.84 ms
20 bytes from 192.168.2.1 icmp_seq=3 ttl=50 time=1.23 ms
--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss
rtt min/avg/max/mdev = 0.842/1.097/1.231/0.181 ms
192.168.2.177 is a computer which is off the mesh...
root@OpenWrt2:~# ping -c 3 192.168.2.177
PING 192.168.2.177 (192.168.2.177): 56 data bytes
64 bytes from 192.168.2.177: seq=0 ttl=64 time=187.019 ms
64 bytes from 192.168.2.177: seq=1 ttl=64 time=202.615 ms
64 bytes from 192.168.2.177: seq=2 ttl=64 time=29.680 ms
--- 192.168.2.177 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 29.680/139.771/202.615 ms
root@OpenWrt2:~# batctl ping -c 3 192.168.2.177
PING 192.168.2.177 (60:e3:27:78:85:37) 20(48) bytes of data
20 bytes from 192.168.2.177 icmp_seq=1 ttl=50 time=105.71 ms
20 bytes from 192.168.2.177 icmp_seq=2 ttl=50 time=1.13 ms
20 bytes from 192.168.2.177 icmp_seq=3 ttl=50 time=0.85 ms
--- 192.168.2.177 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss
rtt min/avg/max/mdev = 0.853/35.898/105.706/49.362 ms
root@OpenWrt2:~# ping -c3 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=52 time=14.725 ms
64 bytes from 8.8.8.8: seq=1 ttl=52 time=9.042 ms
64 bytes from 8.8.8.8: seq=2 ttl=52 time=9.909 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 9.042/11.225/14.725 ms
as soon as i switch to psk encryptio the connection between the two nodes fails
config wifi-iface 'mesh0'
option device 'radio0'
option ifname 'mesh0'
option network 'nwi_mesh0'
option mode 'mesh'
option mesh_fwding '0'
option mesh_id 'XXX'
option encryption 'none'
# option encryption 'psk2+ccmp'
# option key 'XXX'
on the 1043
root@OpenWrt2:~# logread | fgrep mesh
Sat Oct 26 17:46:48 2019 user.notice mac80211: Failed command: iw dev mesh0 set channel 6 HT40
Sat Oct 26 17:46:52 2019 kern.info kernel: [ 35.636596] IPv6: ADDRCONF(NETDEV_UP): mesh0: link is not ready
Sat Oct 26 17:46:53 2019 user.notice mac80211: Failed command: iw dev mesh0 set mesh_param mesh_fwding 0
Sat Oct 26 17:46:53 2019 daemon.notice netifd: Interface 'nwi_mesh0' is enabled
Sat Oct 26 17:46:54 2019 daemon.err wpa_supplicant[1411]: Using interface mesh0 with hwaddr 54:e6:fc:9a:36:8e and ssid ""
Sat Oct 26 17:46:54 2019 daemon.notice wpa_supplicant[1411]: mesh0: interface state UNINITIALIZED->ENABLED
Sat Oct 26 17:46:54 2019 daemon.notice wpa_supplicant[1411]: mesh0: AP-ENABLED
Sat Oct 26 17:46:54 2019 daemon.notice wpa_supplicant[1411]: mesh0: joining mesh XXX
Sat Oct 26 17:46:54 2019 daemon.notice netifd: Network device 'mesh0' link is up
Sat Oct 26 17:46:54 2019 daemon.notice netifd: Interface 'nwi_mesh0' has link connectivity
Sat Oct 26 17:46:54 2019 daemon.notice netifd: Interface 'nwi_mesh0' is setting up now
Sat Oct 26 17:46:54 2019 kern.info kernel: [ 38.304827] IPv6: ADDRCONF(NETDEV_CHANGE): mesh0: link becomes ready
Sat Oct 26 17:46:54 2019 daemon.notice wpa_supplicant[1411]: mesh0: CTRL-EVENT-CONNECTED - Connection to 00:00:00:00:00:00 completed [id=0 id_str=]
Sat Oct 26 17:46:54 2019 daemon.notice wpa_supplicant[1411]: mesh0: MESH-GROUP-STARTED ssid="XXX" id=0
Sat Oct 26 17:46:55 2019 kern.info kernel: [ 38.396218] batman_adv: bat0: Adding interface: mesh0
Sat Oct 26 17:46:55 2019 kern.info kernel: [ 38.401469] batman_adv: bat0: Interface activated: mesh0
Sat Oct 26 17:46:55 2019 daemon.notice netifd: Interface 'nwi_mesh0' is now up
Sat Oct 26 17:51:03 2019 daemon.notice wpa_supplicant[1411]: mesh0: new peer notification for 60:e3:27:78:85:37
Sat Oct 26 17:51:04 2019 daemon.notice wpa_supplicant[1411]: mesh0: mesh plink with 60:e3:27:78:85:37 established
Sat Oct 26 17:51:04 2019 daemon.notice wpa_supplicant[1411]: mesh0: MESH-PEER-CONNECTED 60:e3:27:78:85:37
root@OpenWrt2:~# batctl o
[B.A.T.M.A.N. adv openwrt-2019.3-0, MainIF/MAC: mesh0/54:e6:fc:9a:36:8e (bat0/6e:fd:4d:ee:e9:b1 BATMAN_IV)]
Originator last-seen (#/255) Nexthop [outgoingIF]
* 60:e3:27:78:85:37 1.020s (242) 60:e3:27:78:85:37 [ mesh0]
root@OpenWrt2:~# batctl n
[B.A.T.M.A.N. adv openwrt-2019.3-0, MainIF/MAC: mesh0/54:e6:fc:9a:36:8e (bat0/6e:fd:4d:ee:e9:b1 BATMAN_IV)]
IF Neighbor last-seen
mesh0 60:e3:27:78:85:37 0.940s
root@OpenWrt2:~# ping -c 3 192.168.2.1
PING 192.168.2.1 (192.168.2.1): 56 data bytes
--- 192.168.2.1 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
root@OpenWrt2:~# batctl ping -c 3 192.168.2.1
PING 192.168.2.1 (60:e3:27:78:85:37) 20(48) bytes of data
Reply from host 192.168.2.1 timed out
Reply from host 192.168.2.1 timed out
Reply from host 192.168.2.1 timed out
--- 192.168.2.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss
rtt min/avg/max/mdev = 0.000/0.000/0.000/0.000 ms
and now the archer c7
root@OpenWrt:~# logread | fgrep mesh
Sat Oct 26 17:34:43 2019 user.notice mac80211: Failed command: iw dev mesh0 set channel 6 HT40
Sat Oct 26 17:39:04 2019 kern.info kernel: [ 50.066844] IPv6: ADDRCONF(NETDEV_UP): mesh0: link is not ready
Sat Oct 26 17:39:04 2019 kern.info kernel: [ 50.378949] IPv6: ADDRCONF(NETDEV_CHANGE): mesh0: link becomes ready
Sat Oct 26 17:39:04 2019 daemon.notice netifd: Network device 'mesh0' link is up
Sat Oct 26 17:39:04 2019 daemon.notice netifd: Interface 'nwi_mesh0' is enabled
Sat Oct 26 17:39:04 2019 daemon.notice netifd: Interface 'nwi_mesh0' has link connectivity
Sat Oct 26 17:39:04 2019 daemon.notice netifd: Interface 'nwi_mesh0' is setting up now
Sat Oct 26 17:39:05 2019 kern.info kernel: [ 50.743871] batman_adv: bat0: Adding interface: mesh0
Sat Oct 26 17:39:05 2019 kern.info kernel: [ 50.749015] batman_adv: bat0: Interface activated: mesh0
Sat Oct 26 17:39:05 2019 daemon.notice netifd: Interface 'nwi_mesh0' is now up
Sat Oct 26 17:51:42 2019 daemon.notice netifd: Interface 'nwi_mesh0' is disabled
Sat Oct 26 17:51:42 2019 daemon.notice netifd: Interface 'nwi_mesh0' has link connectivity loss
Sat Oct 26 17:51:42 2019 kern.info kernel: [ 808.190814] batman_adv: bat0: Interface deactivated: mesh0
Sat Oct 26 17:51:42 2019 kern.info kernel: [ 808.196504] batman_adv: bat0: Removing interface: mesh0
Sat Oct 26 17:51:42 2019 daemon.notice netifd: Interface 'nwi_mesh0' is now down
Sat Oct 26 17:51:43 2019 user.notice mac80211: Failed command: iw dev mesh0 set channel 6 HT40
Sat Oct 26 17:51:45 2019 kern.info kernel: [ 810.971082] IPv6: ADDRCONF(NETDEV_UP): mesh0: link is not ready
Sat Oct 26 17:51:46 2019 user.notice mac80211: Failed command: iw dev mesh0 set mesh_param mesh_fwding 0
Sat Oct 26 17:51:47 2019 daemon.notice netifd: Interface 'nwi_mesh0' is enabled
Sat Oct 26 17:51:47 2019 daemon.err wpa_supplicant[2982]: Using interface mesh0 with hwaddr 60:e3:27:78:85:37 and ssid ""
Sat Oct 26 17:51:47 2019 daemon.notice wpa_supplicant[2982]: mesh0: interface state UNINITIALIZED->ENABLED
Sat Oct 26 17:51:47 2019 daemon.notice wpa_supplicant[2982]: mesh0: AP-ENABLED
Sat Oct 26 17:51:47 2019 daemon.notice wpa_supplicant[2982]: mesh0: joining mesh XXX
Sat Oct 26 17:51:47 2019 daemon.notice netifd: Network device 'mesh0' link is up
Sat Oct 26 17:51:47 2019 daemon.notice netifd: Interface 'nwi_mesh0' has link connectivity
Sat Oct 26 17:51:47 2019 daemon.notice netifd: Interface 'nwi_mesh0' is setting up now
Sat Oct 26 17:51:48 2019 kern.info kernel: [ 813.754229] IPv6: ADDRCONF(NETDEV_CHANGE): mesh0: link becomes ready
Sat Oct 26 17:51:48 2019 daemon.notice wpa_supplicant[2982]: mesh0: CTRL-EVENT-CONNECTED - Connection to 00:00:00:00:00:00 completed [id=0 id_str=]
Sat Oct 26 17:51:48 2019 daemon.notice wpa_supplicant[2982]: mesh0: MESH-GROUP-STARTED ssid="XXX" id=0
Sat Oct 26 17:51:48 2019 kern.info kernel: [ 813.959072] batman_adv: bat0: Adding interface: mesh0
Sat Oct 26 17:51:48 2019 kern.info kernel: [ 813.964317] batman_adv: bat0: Interface activated: mesh0
Sat Oct 26 17:51:48 2019 daemon.notice netifd: Interface 'nwi_mesh0' is now up
Sat Oct 26 17:51:48 2019 daemon.notice wpa_supplicant[2982]: mesh0: new peer notification for 54:e6:fc:9a:36:8e
Sat Oct 26 17:51:49 2019 daemon.notice wpa_supplicant[2982]: mesh0: new peer notification for 54:e6:fc:9a:36:8e
Sat Oct 26 17:51:49 2019 daemon.notice wpa_supplicant[2982]: mesh0: new peer notification for 54:e6:fc:9a:36:8e
Sat Oct 26 17:51:49 2019 daemon.notice wpa_supplicant[2982]: mesh0: new peer notification for 54:e6:fc:9a:36:8e
Sat Oct 26 17:51:49 2019 daemon.notice wpa_supplicant[2982]: mesh0: new peer notification for 54:e6:fc:9a:36:8e
Sat Oct 26 17:51:49 2019 daemon.notice wpa_supplicant[2982]: mesh0: mesh plink with 54:e6:fc:9a:36:8e established
Sat Oct 26 17:51:49 2019 daemon.notice wpa_supplicant[2982]: mesh0: MESH-PEER-CONNECTED 54:e6:fc:9a:36:8e
root@OpenWrt:~# batctl o
[B.A.T.M.A.N. adv openwrt-2019.3-0, MainIF/MAC: mesh0/60:e3:27:78:85:37 (bat0/e6:41:e8:76:6e:b7 BATMAN_IV)]
Originator last-seen (#/255) Nexthop [outgoingIF]
* 54:e6:fc:9a:36:8e 0.520s (255) 54:e6:fc:9a:36:8e [ mesh0]
root@OpenWrt:~# batctl n
[B.A.T.M.A.N. adv openwrt-2019.3-0, MainIF/MAC: mesh0/60:e3:27:78:85:37 (bat0/e6:41:e8:76:6e:b7 BATMAN_IV)]
IF Neighbor last-seen
mesh0 54:e6:fc:9a:36:8e 0.900s
root@OpenWrt:~# ping -c 3 192.168.2.2
PING 192.168.2.2 (192.168.2.2): 56 data bytes
--- 192.168.2.2 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
root@OpenWrt:~# batctl ping -c 3 192.168.2.2
Error - mac address of the ping destination could not be resolved and is not a bat-host name: 192.168.2.2
root@OpenWrt:~# batctl ping -c 3 54:e6:fc:9a:36:8e
PING 54:e6:fc:9a:36:8e (54:e6:fc:9a:36:8e) 20(48) bytes of data
Reply from host 54:e6:fc:9a:36:8e timed out
Reply from host 54:e6:fc:9a:36:8e timed out
Reply from host 54:e6:fc:9a:36:8e timed out
--- 54:e6:fc:9a:36:8e ping statistics ---
3 packets transmitted, 0 received, 100% packet loss
rtt min/avg/max/mdev = 0.000/0.000/0.000/0.000 ms
in this case it seems to me that the main difference is that the node 1 cannot ping node 1, which is something that strangely it could do before...
if anyone has anything that wants me to test, i would be happy to try..
thanks
M