I appreciate Eveyone who worked on the wbs 210 to ath79

I have these routers in a ptp long distance both the wbs 210 and wbs 510 and thanks for updating it patiently waiting for the wbs 510.I can't get another router to use with openwrt which is supported example the ubiquity R5AC lite so if anyone needs a wbs 510 email me i will purchase and send it to you thanks for the your time and effort

I should be receiving a WBS510 V2 in the next week or two to test.
I have created a branch for it and will create a PR once I have tested it.
My Test code is located at https://github.com/apcameron/openwrt/tree/wbs510v2-ath79

Sounds good but i dont have the version 2 i have version 1 I would assume lots of people have the version 1 of the 210 as well.

TP-Link WBS510 v1.20

Currently the WBS510 v1.20 is supported under ar71xx
https://downloads.openwrt.org/releases/18.06.4/targets/ar71xx/generic/openwrt-18.06.4-ar71xx-generic-wbs510-v1-squashfs-factory.bin
And
https://downloads.openwrt.org/releases/18.06.4/targets/ar71xx/generic/openwrt-18.06.4-ar71xx-generic-wbs510-v1-squashfs-sysupgrade.bin
Will that work for you or does it have to be on the ath79 branch for what you need?

its working fine but i cannot get to 27 dbm its stuck on 13dbm no matter what country i change to. and my data rate is below 54mb at 27dbm i get 150 i think. Ihave tried ath 79 on cpe 210 and i get 30dbm so im assuming its fixed on the ath79 thas why i needed to try it

Ok, Do you know how to recover your device if something goes wrong?
I can create an image for you for testing on the WBS510 v1, if you want to try it but it will need to wait until I get my WBS510 v2 so I can validate that my changes will work ok.

yes i can tftp to tp link software with 192.168.0.100 i know all these stuff

Great. I will let you know in the next week or two when I have an image for you to test.
Hopefully My WBS510 v2 arrives soon.

ok thanks a million ill wait.

Please test this code and if it works send me a copy of output of dmesg and I will open PR to get it supported.

Send you an output of what?

Test the code I sent in the message above and if it works on your WBS510 v1 connect to the device with ssh
at the prompt type
dmesg
and send me the output

The files you will need will be in the folder bin/targets/ath79/generic called
openwrt-ath79-generic-tplink_wbs510-v1-squashfs-factory.bin and
openwrt-ath79-generic-tplink_wbs510-v1-squashfs-sysupgrade.bin

Yes im working on it now i will use putty to ssh

/tmp$ dmesg

[    0.000000] Linux version 4.19.82 (apcameron@debian) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r11528-fd1644267c)) #0 Sat Nov 16 03:43:28 2019

[    0.000000] bootconsole [early0] enabled

[    0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)

[    0.000000] MIPS: machine is TP-Link WBS510 v1

[    0.000000] SoC: Atheros AR9344 rev 2

[    0.000000] Determined physical RAM map:

[    0.000000]  memory: 04000000 @ 00000000 (usable)

[    0.000000] Initrd not found or empty - disabling initrd

[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.

[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes

[    0.000000] Zone ranges:

[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000003ffffff]

[    0.000000] Movable zone start for each node

[    0.000000] Early memory node ranges

[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]

[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]

[    0.000000] On node 0 totalpages: 16384

[    0.000000]   Normal zone: 144 pages used for memmap

[    0.000000]   Normal zone: 0 pages reserved

[    0.000000]   Normal zone: 16384 pages, LIFO batch:3

[    0.000000] random: get_random_bytes called from start_kernel+0x98/0x4a8 with crng_init=0

[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768

[    0.000000] pcpu-alloc: [0] 0

[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16240

[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2

[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

[    0.000000] Writing ErrCtl register=00000000

[    0.000000] Readback ErrCtl register=00000000

[    0.000000] Memory: 57576K/65536K available (4273K kernel code, 178K rwdata, 1008K rodata, 1188K init, 206K bss, 7960K reserved, 0K cma-reserved)

[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

[    0.000000] NR_IRQS: 51

[    0.000000] CPU clock: 560.000 MHz

[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns

[    0.000011] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns

[    0.009076] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)

[    0.086296] pid_max: default: 32768 minimum: 301

[    0.091912] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)

[    0.099618] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)

[    0.113710] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns

[    0.125197] futex hash table entries: 256 (order: -1, 3072 bytes)

[    0.132442] pinctrl core: initialized pinctrl subsystem

[    0.139736] NET: Registered protocol family 16

[    0.152062] GPIO line 18 (tp-link:ext:lna0) hogged as output/high

[    0.159226] GPIO line 19 (tp-link:ext:lna1) hogged as output/high

[    0.196285] clocksource: Switched to clocksource MIPS

[    0.203642] NET: Registered protocol family 2

[    0.209732] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)

[    0.218762] TCP established hash table entries: 1024 (order: 0, 4096 bytes)

[    0.226894] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)

[    0.234285] TCP: Hash tables configured (established 1024 bind 1024)

[    0.241842] UDP hash table entries: 256 (order: 0, 4096 bytes)

[    0.248703] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

[    0.256506] NET: Registered protocol family 1

[    0.261603] PCI: CLS 0 bytes, default 32

[    0.265993] Crashlog allocated RAM at address 0x3f00000

[    0.273926] workingset: timestamp_bits=14 max_order=14 bucket_order=0

[    0.289666] squashfs: version 4.0 (2009/01/31) Phillip Lougher

[    0.296503] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.

[    0.324218] io scheduler noop registered

[    0.328849] io scheduler deadline registered (default)

[    0.337380] pinctrl-single 1804002c.pinmux: 544 pins, size 68

[    0.345223] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled

[    0.353536] console [ttyS0] disabled

[    0.357790] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 2500000) is a 16550A

[    0.367834] console [ttyS0] enabled

[    0.375249] bootconsole [early0] disabled

[    0.404053] m25p80 spi0.0: s25fl064k (8192 Kbytes)

[    0.409030] 6 fixed-partitions partitions found on MTD device spi0.0

[    0.415475] Creating 6 MTD partitions on "spi0.0":

[    0.420376] 0x000000000000-0x000000020000 : "u-boot"

[    0.426516] 0x000000020000-0x000000030000 : "partition-table"

[    0.433369] 0x000000030000-0x000000040000 : "info"

[    0.439274] 0x000000040000-0x0000007c0000 : "firmware"

[    0.445431] 2 fixed-partitions partitions found on MTD device firmware

[    0.452127] Creating 2 MTD partitions on "firmware":

[    0.457193] 0x000000000000-0x000000200000 : "kernel"

[    0.463203] 0x000000200000-0x000000780000 : "rootfs"

[    0.469222] mtd: device 5 (rootfs) set to be root filesystem

[    0.480318] 1 squashfs-split partitions found on MTD device rootfs

[    0.486679] 0x000000400000-0x000000780000 : "rootfs_data"

[    0.493183] 0x0000007c0000-0x0000007f0000 : "config"

[    0.499250] 0x0000007f0000-0x000000800000 : "art"

[    0.506393] libphy: Fixed MDIO Bus: probed

[    0.867383] ag71xx 19000000.eth: Could not connect to PHY device. Deferring probe.

[    1.546722] libphy: ag71xx_mdio: probed

[    1.551806] libphy: ar8xxx-mdio: probed

[    1.563064] switch0: Atheros AR8229 rev. 1 switch registered on mdio-bus.0

[    1.615380] ag71xx 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]

[    1.625301] eth0: Atheros AG71xx at 0xba000000, irq 5, mode: gmii

[    1.634756] NET: Registered protocol family 10

[    1.646505] Segment Routing with IPv6

[    1.650376] NET: Registered protocol family 17

[    1.654976] 8021q: 802.1Q VLAN Support v1.8

[    1.998278] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:1f:04 [uid=004dd042, driver=Generic PHY]

[    2.009018] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode: mii

[    2.025268] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.

[    2.040871] Freeing unused kernel memory: 1188K

[    2.045472] This architecture does not have kernel memory protection.

[    2.052040] Run /sbin/init as init process

[    2.546300] random: fast init done

[    3.169428] init: Console is alive

[    3.173176] init: - watchdog -

[    4.398619] kmodloader: loading kernel modules from /etc/modules-boot.d/*

[    4.582629] kmodloader: done loading kernel modules from /etc/modules-boot.d/*

[    4.600561] init: - preinit -

[    6.025222] random: jshn: uninitialized urandom read (4 bytes read)

[    6.145991] random: jshn: uninitialized urandom read (4 bytes read)

[    6.282764] random: jshn: uninitialized urandom read (4 bytes read)

[    6.799834] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready

[    8.909341] eth1: link up (100Mbps/Full duplex)

[    8.914960] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

[   10.120782] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000

[   10.128313] jffs2_build_filesystem(): unlocking the mtd device...

[   10.128385] done.

[   10.136647] jffs2_build_filesystem(): erasing all blocks after the end marker...

[   24.106468] done.

[   24.116045] jffs2: notice: (474) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.

[   24.133447] mount_root: overlay filesystem has not been fully initialized yet

[   24.149207] mount_root: switching to jffs2 overlay

[   24.180308] overlayfs: upper fs does not support tmpfile.

[   24.526699] urandom-seed: Seed file not found (/etc/urandom.seed)

[   24.732568] eth1: link down

[   24.750244] procd: - early -

[   24.753301] procd: - watchdog -

[   25.405480] procd: - watchdog -

[   25.409127] procd: - ubus -

[   25.443142] urandom_read: 5 callbacks suppressed

[   25.443151] random: ubusd: uninitialized urandom read (4 bytes read)

[   25.462135] random: ubusd: uninitialized urandom read (4 bytes read)

[   25.470302] procd: - init -

[   26.372672] kmodloader: loading kernel modules from /etc/modules.d/*

[   26.434557] Loading modules backported from Linux version v5.4-rc2-0-gda0c9ea146cb

[   26.442305] Backport generated by backports.git v5.4-rc2-1-0-g5a0c323a

[   26.527792] xt_time: kernel timezone is -0000

[   26.789912] PPP generic driver version 2.4.2

[   26.807676] NET: Registered protocol family 24

[   26.950829] ath: EEPROM regdomain: 0x0

[   26.950839] ath: EEPROM indicates default country code should be used

[   26.950843] ath: doing EEPROM country->regdmn map search

[   26.950861] ath: country maps to regdmn code: 0x3a

[   26.950868] ath: Country alpha2 being used: US

[   26.950872] ath: Regpair used: 0x3a

[   26.966732] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'

[   26.968706] ieee80211 phy0: Atheros AR9340 Rev:2 mem=0xb8100000, irq=12

[   27.066806] kmodloader: done loading kernel modules from /etc/modules.d/*

[   27.085869] urngd: v1.0.1 started.

[   27.586779] random: crng init done

[   39.810445] br-lan: port 1(eth1) entered blocking state

[   39.815763] br-lan: port 1(eth1) entered disabled state

[   39.821549] device eth1 entered promiscuous mode

[   39.845348] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready

[   39.910742] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

[   40.987562] eth0: link up (1000Mbps/Full duplex)

[   41.006536] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

[   41.868708] eth1: link up (100Mbps/Full duplex)

[   41.873380] br-lan: port 1(eth1) entered blocking state

[   41.878740] br-lan: port 1(eth1) entered forwarding state

[   42.012969] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

I have created a PR Request to get it supported under the ath79 Branch.
You can track the status by looking at the PR

Its been working all day but I have one slight problem the dbm power is stuck at 14 and I cant get it to anywhere near 27 for me case I use 23 dbm on auto but its not working right can you fix the power issue?

Mail](https://go.microsoft.com/fwlink/?LinkId=550986) for Windows 10

So it is behaving the same as when it was running on the ar71xx branch?
What does the following return when you ssh to the device

iw phy0 info

See comment below from the vendor
Note: Maximum transmission power may vary across different channels depending on the limitations of the countries or regions in which the device is used.

Here is the result on my WBS510v2 for iw phy0 info

Wiphy phy0
	max # scan SSIDs: 4
	max scan IEs length: 2261 bytes
	max # sched scan SSIDs: 0
	max # match sets: 0
	max # scan plans: 1
	max scan plan interval: -1
	max scan plan iterations: 0
	Retry short limit: 7
	Retry long limit: 4
	Coverage class: 0 (up to 0m)
	Device supports AP-side u-APSD.
	Device supports T-DLS.
	Available Antennas: TX 0x3 RX 0x3
	Configured Antennas: TX 0x3 RX 0x3
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * AP/VLAN
		 * monitor
		 * mesh point
		 * P2P-client
		 * P2P-GO
		 * outside context of a BSS
	Band 2:
		Capabilities: 0x11ef
			RX LDPC
			HT20/HT40
			SM Power Save disabled
			RX HT20 SGI
			RX HT40 SGI
			TX STBC
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			DSSS/CCK HT40
		Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
		Minimum RX AMPDU time spacing: 8 usec (0x06)
		HT TX/RX MCS rate indexes supported: 0-15
		Frequencies:
			* 5180 MHz [36] (23.0 dBm)
			* 5200 MHz [40] (23.0 dBm)
			* 5220 MHz [44] (23.0 dBm)
			* 5240 MHz [48] (23.0 dBm)
			* 5260 MHz [52] (23.0 dBm) (radar detection)
			* 5280 MHz [56] (23.0 dBm) (radar detection)
			* 5300 MHz [60] (23.0 dBm) (radar detection)
			* 5320 MHz [64] (23.0 dBm) (radar detection)
			* 5500 MHz [100] (23.0 dBm) (radar detection)
			* 5520 MHz [104] (23.0 dBm) (radar detection)
			* 5540 MHz [108] (23.0 dBm) (radar detection)
			* 5560 MHz [112] (23.0 dBm) (radar detection)
			* 5580 MHz [116] (23.0 dBm) (radar detection)
			* 5600 MHz [120] (23.0 dBm) (radar detection)
			* 5620 MHz [124] (23.0 dBm) (radar detection)
			* 5640 MHz [128] (23.0 dBm) (radar detection)
			* 5660 MHz [132] (23.0 dBm) (radar detection)
			* 5680 MHz [136] (23.0 dBm) (radar detection)
			* 5700 MHz [140] (23.0 dBm) (radar detection)
			* 5745 MHz [149] (26.0 dBm)
			* 5765 MHz [153] (26.0 dBm)
			* 5785 MHz [157] (26.0 dBm)
			* 5805 MHz [161] (26.0 dBm)
			* 5825 MHz [165] (26.0 dBm)
	valid interface combinations:
		 * #{ managed } <= 2048, #{ AP, mesh point } <= 8, #{ P2P-client, P2P-GO } <= 1, #{ IBSS } <= 1,
		   total <= 2048, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz }

	HT Capability overrides:
		 * MCS: ff ff ff ff ff ff ff ff ff ff
		 * maximum A-MSDU length
		 * supported channel width
		 * short GI for 40 MHz
		 * max A-MPDU length exponent
		 * min MPDU start spacing
	Supported extended features:
		* [ RRM ]: RRM
		* [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records
		* [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211
		* [ TXQS ]: FQ-CoDel-enabled intermediate TXQs
		* [ AIRTIME_FAIRNESS ]: airtime fairness scheduling

It is running at 23 dBm
Here is the output from iwinfo

wlan0     ESSID: "OpenWrt"
          Access Point: 50:C7:BF:58:87:7C
          Mode: Master  Channel: 36 (5.180 GHz)
          Tx-Power: 23 dBm  Link Quality: unknown/70
          Signal: unknown  Noise: -95 dBm
          Bit Rate: unknown
          Encryption: none
          Type: nl80211  HW Mode(s): 802.11an
          Hardware: unknown [Generic MAC80211]
          TX power offset: unknown
          Frequency offset: unknown
          Supports VAPs: yes  PHY name: phy0

Yes it only worked right on 17.01.7 was able to get 23 dbm channel 36 apart from that everything else 13 dbm 14 max which dropped the tx and rx horribly of 24mbits . I usually get 150 + with 23 dbm + on 17.01.7

/tmp$ iw phy0 info

Wiphy phy0

max # scan SSIDs: 4

max scan IEs length: 2261 bytes

max # sched scan SSIDs: 0

max # match sets: 0

max # scan plans: 1

max scan plan interval: -1

max scan plan iterations: 0

Retry short limit: 7

Retry long limit: 4

Coverage class: 0 (up to 0m)

Device supports AP-side u-APSD.

Device supports T-DLS.

Available Antennas: TX 0x3 RX 0x3

Configured Antennas: TX 0x3 RX 0x3

Supported interface modes:

  • IBSS

  • managed

  • AP

  • AP/VLAN

  • monitor

  • mesh point

  • P2P-client

  • P2P-GO

  • outside context of a BSS

Band 2:

Capabilities: 0x11ef

RX LDPC

HT20/HT40

SM Power Save disabled

RX HT20 SGI

RX HT40 SGI

TX STBC

RX STBC 1-stream

Max AMSDU length: 3839 bytes

DSSS/CCK HT40

Maximum RX AMPDU length 65535 bytes (exponent: 0x003)

Minimum RX AMPDU time spacing: 8 usec (0x06)

HT TX/RX MCS rate indexes supported: 0-15

Frequencies:

  • 5180 MHz [36] (23.0 dBm)

  • 5200 MHz [40] (23.0 dBm)

  • 5220 MHz [44] (23.0 dBm)

  • 5240 MHz [48] (23.0 dBm)

  • 5260 MHz [52] (23.0 dBm) (radar detection)

  • 5280 MHz [56] (23.0 dBm) (radar detection)

  • 5300 MHz [60] (23.0 dBm) (radar detection)

  • 5320 MHz [64] (23.0 dBm) (radar detection)

  • 5500 MHz [100] (23.0 dBm) (radar detection)

  • 5520 MHz [104] (23.0 dBm) (radar detection)

  • 5540 MHz [108] (23.0 dBm) (radar detection)

  • 5560 MHz [112] (23.0 dBm) (radar detection)

  • 5580 MHz [116] (23.0 dBm) (radar detection)

  • 5600 MHz [120] (23.0 dBm) (radar detection)

  • 5620 MHz [124] (23.0 dBm) (radar detection)

  • 5640 MHz [128] (23.0 dBm) (radar detection)

  • 5660 MHz [132] (23.0 dBm) (radar detection)

  • 5680 MHz [136] (23.0 dBm) (radar detection)

  • 5700 MHz [140] (23.0 dBm) (radar detection)

  • 5745 MHz [149] (26.0 dBm)

  • 5765 MHz [153] (26.0 dBm)

  • 5785 MHz [157] (26.0 dBm)

  • 5805 MHz [161] (26.0 dBm)

  • 5825 MHz [165] (26.0 dBm)

valid interface combinations:

  • #{ managed } <= 2048, #{ AP, mesh point } <= 8, #{ P2P-client, P2P-GO } <= 1, #{ IBSS } <= 1,

total <= 2048, #channels <= 1, STA/AP BI must match, radar detect widths: { 20 MHz (no HT), 20 MHz, 40 MHz }

HT Capability overrides:

  • MCS: ff ff ff ff ff ff ff ff ff ff

  • maximum A-MSDU length

  • supported channel width

  • short GI for 40 MHz

  • max A-MPDU length exponent

  • min MPDU start spacing

Supported extended features:

  • [ CQM_RSSI_LIST ]: multiple CQM_RSSI_THOLD records

  • [ CONTROL_PORT_OVER_NL80211 ]: control port over nl80211

  • [ TXQS ]: FQ-CoDel-enabled intermediate TXQs

  • [ AIRTIME_FAIRNESS ]: airtime fairness scheduling

Mail](https://go.microsoft.com/fwlink/?LinkId=550986) for Windows 10