All of lore.kernel.org
 help / color / mirror / Atom feed
* attempting mesh on ath10k
@ 2015-04-24 12:50 Bob Copeland
  2015-04-24 17:55 ` Yeoh Chun-Yeow
  0 siblings, 1 reply; 24+ messages in thread
From: Bob Copeland @ 2015-04-24 12:50 UTC (permalink / raw)
  To: ath10k

Hi all,

I have played around a little bit with the raw mode patches trying to
get mesh working on ath10k.  I've hacked the driver slightly to use an
AP vif in the firmware in "mesh" mode, which seems to produce proper looking
beacons over the air.

However, when I bring up a second mesh node, the ath10k device crashes
upon trying to send the first mesh peering action frame.  Here's what
dmesg looks like:

[   43.860000] ath10k_pci 0000:01:00.0: wmi event debug mesg len 140
[   44.310000] XXX trying to create peer 00:03:7f:10:4e:2d
[   44.310000] ath10k_pci 0000:01:00.0: wmi peer create vdev_id 0 peer_addr 00:03:7f:10:4e:2d
[   44.320000] XXX sending WMI cmd 36892
[   44.320000] XXX sending WMI cmd nowait 36892
[   44.330000] XXX waiting for peer create 00:03:7f:10:4e:2d
[   44.330000] XXX peer 00:03:7f:10:4e:2d added
[   44.340000] ath10k_pci 0000:01:00.0: wmi peer assoc vdev 0 addr 00:03:7f:10:4e:2d (new)
[   44.350000] XXX sending WMI cmd 36896
[   44.350000] XXX sending WMI cmd nowait 36896
[   44.350000] ath10k_pci 0000:01:00.0: received event id 36891 not implemented
[   44.360000] mesh: sending popen to 00:03:7f:10:4e:2d
[   44.380000] ath10k_pci 0000:01:00.0: wmi mgmt tx skb 86fb4e40 len 84 ftype 00 stype d0
[   44.390000] XXX sending WMI cmd 36905
[   44.390000] XXX sending WMI cmd nowait 36905
[   44.390000] ath10k_pci 0000:01:00.0: firmware crashed! (uuid 839037ff-ad03-4442-9114-f99e03204c
[   44.400000] ath10k_pci 0000:01:00.0: qca988x hw2.0 (0x4100016c, 0x043202ff) fw 10.2-00082-4-2 a
[   44.410000] ath10k_pci 0000:01:00.0: debug 1 debugfs 1 tracing 0 dfs 1 testmode 1
[   44.420000] ath10k_pci 0000:01:00.0: firmware register dump:
[   44.430000] ath10k_pci 0000:01:00.0: [00]: 0x4100016C 0x000015B3 0x009A98BE 0x00955B31
[   44.440000] ath10k_pci 0000:01:00.0: [04]: 0x009A98BE 0x00060330 0x0000001E 0x00000B00
[   44.440000] ath10k_pci 0000:01:00.0: [08]: 0x00447730 0x009C3014 0x00446970 0x00000078
[   44.450000] ath10k_pci 0000:01:00.0: [12]: 0x00000009 0xFFFFFFFF 0x00958360 0x0095836B
[   44.460000] ath10k_pci 0000:01:00.0: [16]: 0x00958080 0x009A6CCF 0x00000000 0x00000000
[   44.470000] ath10k_pci 0000:01:00.0: [20]: 0x409A98BE 0x0040AB14 0x0040FAA8 0x0043E677
[   44.480000] ath10k_pci 0000:01:00.0: [24]: 0x809A9958 0x0040AB74 0x0043E7CC 0xC09A98BE
[   44.480000] ath10k_pci 0000:01:00.0: [28]: 0x8099F2E9 0x0040AB94 0x009C3014 0x0040AD04
[   44.490000] ath10k_pci 0000:01:00.0: [32]: 0x8098933F 0x0040ABB4 0x0043D0D8 0x0040AD04
[   44.500000] ath10k_pci 0000:01:00.0: [36]: 0x809B38C0 0x0040ABD4 0x009C3014 0x0043D0D8
[   44.510000] ath10k_pci 0000:01:00.0: [40]: 0x809AFD68 0x0040AD94 0x00400000 0x00416688
[   44.520000] ath10k_pci 0000:01:00.0: [44]: 0x809BDA75 0x0040ADE4 0x0040AE08 0x00411D44
[   44.520000] ath10k_pci 0000:01:00.0: [48]: 0x809486FA 0x0040AE04 0x00000001 0x00000000
[   44.530000] ath10k_pci 0000:01:00.0: [52]: 0x80948E2C 0x0040AEA4 0x0041E424 0x00412350
[   44.540000] ath10k_pci 0000:01:00.0: [56]: 0x809BCF0D 0x0040AEC4 0x0041E424 0x00000001

My hacky compat-wireless snapshot is over here, any suggestions on what to
try next to debug further are welcome:

    https://github.com/bcopeland/ath10k-mesh

[Also I tried skipping the mgmt tx datapath and use normal datapath,
as seen in the final patch, but that doesn't change things, it crashes
either way.]

Maybe I'm not setting up peers correctly or something like that?

-- 
Bob Copeland %% http://bobcopeland.com/

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 24+ messages in thread
* Re: attempting mesh on ath10k
@ 2015-07-06 21:25 Freddy Lee
  2015-07-06 21:49 ` Bob Copeland
  0 siblings, 1 reply; 24+ messages in thread
From: Freddy Lee @ 2015-07-06 21:25 UTC (permalink / raw)
  To: me; +Cc: ath10k

Hi Bob,

I applied the mesh fix to OpenWRT (r45590 and r62020). It works great
(thanks, Bob!), but with a potentially unforeseen consequence: When an
Archer C7 with these changes is configured to be a 5GHz AP, clients
are unable to connect normally. Experiments show that the client is
registered as a station, but pings don't complete (in many cases, not
even DHCP completes). Tested clients include one commercial phone
(Samsung Galaxy S5 running Lollipop) and another Archer C7.

Without these changes, these same clients can connect to the AP all day long.

Below are sections of verbose output of an access point test script
both without and with the mesh fix.
======= Without ath10k mesh fix =======
+ iw dev wlan0 station dump
Station 30:b5:c2:b2:69:14 (on wlan0)
        inactive time:  1390 ms
        rx bytes:       1106
        rx packets:     3
        tx bytes:       1168
        tx packets:     4
        tx retries:     0
        tx failed:      0
        signal:         -31 dBm
        signal avg:     -32 dBm
        tx bitrate:     6.0 MBit/s
        rx bitrate:     156.0 MBit/s VHT-MCS 5 VHT-NSS 3
        authorized:     yes
        authenticated:  yes
        preamble:       long
        WMM/WME:        yes
        MFP:            no
        TDLS peer:      no
+ cat /tmp/dhcp.leases
+ dhcp_lease=1434658717 30:b5:c2:b2:69:14 192.168.1.104 * *
+ cut -d  -f 3
+ echo 1434658717 30:b5:c2:b2:69:14 192.168.1.104 bcopeland_test.sh
bcopeland_test.sh
+ ip=192.168.1.104
+ echo Client IP = 192.168.1.104
Client IP = 192.168.1.104
+ ping -c 10 192.168.1.104
PING 192.168.1.104 (192.168.1.104) 56(84) bytes of data.
64 bytes from 192.168.1.104: icmp_req=1 ttl=64 time=1.50 ms
64 bytes from 192.168.1.104: icmp_req=2 ttl=64 time=0.673 ms
64 bytes from 192.168.1.104: icmp_req=3 ttl=64 time=0.888 ms
64 bytes from 192.168.1.104: icmp_req=4 ttl=64 time=0.694 ms
64 bytes from 192.168.1.104: icmp_req=5 ttl=64 time=0.662 ms
64 bytes from 192.168.1.104: icmp_req=6 ttl=64 time=0.670 ms
64 bytes from 192.168.1.104: icmp_req=7 ttl=64 time=0.664 ms
64 bytes from 192.168.1.104: icmp_req=8 ttl=64 time=0.759 ms
64 bytes from 192.168.1.104: icmp_req=9 ttl=64 time=1.29 ms
64 bytes from 192.168.1.104: icmp_req=10 ttl=64 time=0.665 ms

--- 192.168.1.104 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9003ms
rtt min/avg/max/mdev = 0.662/0.847/1.508/0.290 ms

======= With ath10k mesh fix =======
+ iw dev wlan0 station dump
Station 30:b5:c2:b2:69:14 (on wlan0)
        inactive time:  2560 ms
        rx bytes:       382
        rx packets:     1
        tx bytes:       444
        tx packets:     2
        tx retries:     0
        tx failed:      0
        signal:         -29 dBm
        signal avg:     -33 dBm
        tx bitrate:     6.0 MBit/s
        rx bitrate:     156.0 MBit/s VHT-MCS 5 VHT-NSS 3
        authorized:     yes
        authenticated:  yes
        preamble:       long
        WMM/WME:        yes
        MFP:            no
        TDLS peer:      no
+ cat /tmp/dhcp.leases
+ dhcp_lease=
+ cut -d  -f 3
+ echo
+ ip=
+ echo Client IP =
Client IP =
+ ping -c 10
Usage: ping [-LRUbdfnqrvVaAD] [-c count] [-i interval] [-w deadline]
            [-p pattern] [-s packetsize] [-t ttl] [-I interface]
            [-M pmtudisc-hint] [-m mark] [-S sndbuf]
            [-T tstamp-options] [-Q tos] [hop1 ...] destination

Does this work on your end? If not, is there a patch that will fix it?
Please advise.

Thanks in advance,

Freddy Lee

_______________________________________________
ath10k mailing list
ath10k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath10k

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2015-08-13  3:15 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-24 12:50 attempting mesh on ath10k Bob Copeland
2015-04-24 17:55 ` Yeoh Chun-Yeow
2015-04-25  1:38   ` Ben Greear
2015-04-26 14:15     ` Bob Copeland
2015-04-26 15:42       ` Ben Greear
2015-04-27 13:00       ` Bob Copeland
2015-04-28  5:47         ` Michal Kazior
2015-04-28 12:25           ` Bob Copeland
2015-05-27  6:51             ` Bartosz Markowski
2015-05-27 11:12               ` Bob Copeland
2015-05-27 11:15                 ` Bartosz Markowski
2015-04-28 12:41   ` Bob Copeland
2015-04-28 12:50     ` Yeoh Chun-Yeow
2015-04-28 12:57       ` Bob Copeland
2015-04-28 14:47         ` Ben Greear
  -- strict thread matches above, loose matches on Subject: below --
2015-07-06 21:25 Freddy Lee
2015-07-06 21:49 ` Bob Copeland
2015-07-06 21:54   ` Bob Copeland
2015-07-12 14:25   ` Bob Copeland
2015-07-13  1:43     ` Bob Copeland
2015-07-13  8:13       ` Michal Kazior
2015-07-13 10:57         ` Bob Copeland
2015-07-20 13:57         ` Bob Copeland
2015-08-13  3:14         ` Bob Copeland

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.