Re: [OpenWrt-Devel] Negative offset for checksum in ath79's 10-ath9k-eeprom

2019-09-18 Thread David Bauer
Hello Adrian, On 9/18/19 4:54 PM, Adrian Schmutzler wrote: > From a practical perspective, it does not matter which function is used, > because the checksum is not evaluated. So one could use either > ath10kcal_patch_mac or ath10kcal_patch_mac_crc in all cases and would get the > same result (i

[OpenWrt-Devel] [PATCH] ipq40xx: abort ar40xx probe on missing PHYs

2019-09-22 Thread David Bauer
to a nullpointer dereference. Signed-off-by: David Bauer --- ...706-ar40xx-abort-probe-on-missig-phy.patch | 23 +++ ...706-ar40xx-abort-probe-on-missig-phy.patch | 23 +++ 2 files changed, 46 insertions(+) create mode 100644 target/linux/ipq40xx/patches-4.14

Re: [OpenWrt-Devel] [PATCH] ipq40xx: remove redundant ucidef_set_interfaces_* in 02_network

2019-09-24 Thread David Bauer
Hello Adrian, On 9/23/19 3:34 PM, Adrian Schmutzler wrote: > qxwlan,e2600ac-c1 |\ > qxwlan,e2600ac-c2) > - ucidef_set_interfaces_lan_wan "eth0" "eth1" > ucidef_add_switch "switch0" \ > "0u@eth0" "3:lan" "4:lan" "0u@eth1" "5:wan" >

[OpenWrt-Devel] [PATCH] mac80211: ath10k: fix latency issue for QCA988x

2019-10-04 Thread David Bauer
This backport fixes high latency (>100ms) on the WiFi link when using a QCA988x Wave 1 radio. The ath10k-ct driver is not affected by this bug from my testing, hence why it hasn't been discovered earlier. Signed-off-by: David Bauer --- ...ath10k-fix-latency-issue-for-QCA988x.pa

Re: [OpenWrt-Devel] [PATCH] ath79: add AR934x NAND Flash Controller driver

2019-10-13 Thread David Bauer
Hello Michal, On 10/11/19 10:50 AM, Michal Cieslakiewicz wrote: > This patch contains updated driver for Atheros NAND Flash Controller > written originally by Gabor Juhos for ar71xx (aka 'ar934x-nfc'). > ath79 version has adapted to work with kernel 4.19 and Device Tree. > It has also been renamed

[OpenWrt-Devel] [PATCH] mpc85xx: correct TP-LINK TL-WDR4900 MAC addresses

2019-10-13 Thread David Bauer
rce to the U-Boot partition, where the MAC address is always present at a fixed partition. The partition was previously already used for the WiFi MAC-addresses. Signed-off-by: David Bauer --- target/linux/mpc85xx/base-files/etc/board.d/02_network | 2 +- .../mpc85xx/files/arch/powerpc/b

[OpenWrt-Devel] [PATCH] ath79: correct ar71xx boardname for UniFi AC Lite

2019-10-14 Thread David Bauer
This corrects the additional boardname for the image metadata to the one used in ar71xx. The previously present additional entry was never used on a running system. Signed-off-by: David Bauer --- target/linux/ath79/image/generic-ubnt.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion

Re: [OpenWrt-Devel] [PATCH] ath79: add AR934x NAND Flash Controller driver

2019-10-14 Thread David Bauer
Hello Michal On 10/14/19 12:22 AM, Michal Cieslakiewicz wrote: > Hello David, > > Yes, please update my commit. > > Thank you for your feedback, review and tests. Indeed I (wrongly) > assumed minimalistic approach and delegated ar71xx reset procedure to > a simple DT property. I have only WNDR43

Re: [OpenWrt-Devel] [PATCH] ath79: add support for UniFi AC-LR

2019-10-14 Thread David Bauer
Hello Adrian, On 10/14/19 2:18 PM, Adrian Schmutzler wrote: > Hi, > > the device name is inconsistent in model string and DEVICE_MODEL (hyphens...). > > However, as this is only the friendly name, it is not really important. > > On their homepage, Ubiquiti never uses hyphens on product names, o

Re: [OpenWrt-Devel] [PATCH] ipq40xx: add label MAC address for Netgear EX6150v2

2019-10-17 Thread David Bauer
Hello Adrian, On 10/7/19 7:38 PM, Adrian Schmutzler wrote: > The device bears two MAC addresses ("MAC 1" and "MAC 2") that > correspond to phy0 and phy1. > > The ethernet MAC address (gmac0) is the same as phy0. > As this one is accessible via local-mac-address in gmac0, the > latter is used for

[OpenWrt-Devel] ath10k QCA9880 firmware TX hang

2019-10-19 Thread David Bauer
Hello, while preparing the switch to 19.07 for the mesh-framework Gluon, we found an issue with ath10k, which results in an overflowing TX queue in the kernel. The QCA9880 does not send TX_DONE or TX_FAILED messages back to the driver, which results in the SKBs never being freed. Both HTT_COOKI

[OpenWrt-Devel] [PATCH 1/2] mac80211: add rtw88 driver

2019-10-21 Thread David Bauer
This commits adds packaging for the new RTW88 driver from Realtek. It supports the Realtek 8822BE/8822CE PCIe wireless chips. For operation, the complementary firmware has to be loaded. Signed-off-by: David Bauer --- package/kernel/mac80211/realtek.mk | 14 +- 1 file changed, 13

[OpenWrt-Devel] [PATCH 2/2] firmware: add Realtek RTL8822BE/RTL8822CE firmware

2019-10-21 Thread David Bauer
This commit adds packages for the Realtek RTl8822BE/RTL8822CE firmware to be used with the rtw88 driver. Signed-off-by: David Bauer --- package/firmware/linux-firmware/realtek.mk | 15 +++ 1 file changed, 15 insertions(+) diff --git a/package/firmware/linux-firmware/realtek.mk b

Re: [OpenWrt-Devel] [PATCH 1/2] mac80211: add rtw88 driver

2019-10-21 Thread David Bauer
Hello John On 10/21/19 9:22 PM, John Crispin wrote: > On 21/10/2019 21:13, David Bauer wrote: >> +config-$(call config_package,rtw88) += RTW88 >> +config-y += RTW88_CORE RTW88_PCI RTW88_8822BE RTW88_8822CE >> + > > why not put it all behind config-$(call config

[OpenWrt-Devel] [PATCH v2] mac80211: add rtw88 driver

2019-10-21 Thread David Bauer
This commits adds packaging for the new RTW88 driver from Realtek. It supports the Realtek 8822BE/8822CE PCIe wireless chips. For operation, the complementary firmware has to be loaded. Signed-off-by: David Bauer --- package/kernel/mac80211/realtek.mk | 13 - 1 file changed, 12

Re: [OpenWrt-Devel] [PATCH v2] mac80211: add rtw88 driver

2019-10-21 Thread David Bauer
On 10/21/19 11:40 PM, John Crispin wrote: > On 21/10/2019 23:20, Hauke Mehrtens wrote: >>> +define KernelPackage/rtw88 >>> +  $(call KernelPackage/mac80211/Default) >>> +  TITLE:=Realtek RTL8822BE/RTL8822CE >>> +  DEPENDS+= @(PCI_SUPPORT) +kmod-mac80211 +@DRIVER_11N_SUPPORT >>> +@DRIVER_11W_SUPP

Re: [OpenWrt-Devel] [PATCH v2] mac80211: add rtw88 driver

2019-10-21 Thread David Bauer
Hello John, On 10/21/19 11:44 PM, John Crispin wrote: > On 21/10/2019 23:41, David Bauer wrote: >> >> >> On 10/21/19 11:40 PM, John Crispin wrote: >>> On 21/10/2019 23:20, Hauke Mehrtens wrote: >>>>> +define KernelPackage/rtw88 >>>>&

[OpenWrt-Devel] [PATCH 2/2] ath79: add support for Aerohive HiveAP 121

2019-10-23 Thread David Bauer
: David Bauer --- .../ath79/base-files/etc/board.d/02_network | 1 + .../ath79/base-files/lib/upgrade/platform.sh | 3 + .../ath79/dts/ar9344_aerohive_hiveap-121.dts | 237 ++ target/linux/ath79/image/nand.mk | 17 ++ target/linux/ath79/nand/config-default

[OpenWrt-Devel] [PATCH 1/2] ath79: enable PCI for whole target

2019-10-23 Thread David Bauer
This commit adds PCI support for the whole ath79 target. Previously, this was only done in the generic and tiny subtargets. With the introduction of the HiveAP-121, PCI will be a requirement for all subtargets, thus moving PCI support to the target configuration. Signed-off-by: David Bauer

[OpenWrt-Devel] [PATCH] ath79: disable delays on AT803X config init

2019-10-24 Thread David Bauer
This patch disables both delays on config init to align the behavior with kernel 5.1 and higher. It can be safely dropped with kernel 5.1. Signed-off-by: David Bauer --- .../0038-at803x-disable-delays.patch | 27 +++ .../0038-at803x-disable-delays.patch

[OpenWrt-Devel] [PATCH] hostapd: enable PMKSA and OK caching for WPA3-Personal

2019-10-29 Thread David Bauer
d iPhone 7 (iOS 13.1). Signed-off-by: David Bauer --- package/network/services/hostapd/files/hostapd.sh | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh index

Re: [OpenWrt-Devel] [PATCH] hostapd: enable PMKSA and OK caching for WPA3-Personal

2019-10-30 Thread David Bauer
Hello Hauke, On 10/30/19 8:47 PM, Hauke Mehrtens wrote: > Do you know which, PMKSA or OKC, is needed for the iPhone? PMKSA caching is the one required to work with the iPhone (however OKC should not be harmful). > > I do not understand why the iPhone only works when one of these options > is s

Re: [OpenWrt-Devel] Broken WiFi on QCA9533 rev. 2

2019-11-05 Thread David Bauer
Hello Adrian, during the CPE210v2 bringup it was discovered that the CPE210 has the wrong bootstrap option set for it's 25 MHz reference clock. Because of this, the device was originally not even booting with ar71xx. On ath79, the reference clock is not detected based on the bootstrap option,

Re: [OpenWrt-Devel] Broken WiFi on QCA9533 rev. 2

2019-11-05 Thread David Bauer
ce clock based on the bootstrap bit (see first link in my previous E-Mail), so the value from the device tree is never used for ath9k. Best wishes David > > https://github.com/openwrt/openwrt/blob/master/target/linux/ath79/dts/qca953x.dtsi#L27 > > Best > > Adrian > >

Re: [OpenWrt-Devel] Broken WiFi on QCA9533 rev. 2

2019-11-05 Thread David Bauer
Hello Adrian, I've prepared the attached patch, can you check if the situation improved with it? Best wishes David On 11/5/19 5:20 PM, David Bauer wrote: > Hello Adrian, > > On 11/5/19 5:14 PM, Adrian Schmutzler wrote: >> Hi David, >> >> thanks for your res

Re: [OpenWrt-Devel] ath79 QCA9563 channel 52+ device not supported

2019-11-06 Thread David Bauer
Hello Adrian, On 11/6/19 11:16 PM, m...@adrianschmutzler.de wrote: > Hi, > > for the to-be-supported TP-Link Archer C6/A6 v2 US (QCA9563) there are > reports that 5 GHz channels from 52 to 144 lead to "Device is not active" > messages and 5 GHz WiFi disabled: > > https://github.com/openwrt/ope

Re: [OpenWrt-Devel] [PATCH] ipq40xx: fritz4040 depends on uboot-fritz4040

2019-11-09 Thread David Bauer
Hello Sven, On 11/9/19 11:52 PM, Sven Roederer wrote: > The "append-uboot" macro is looking for the file > "$(STAGING_DIR_IMAGE)/uboot-fritz4040.bin" > which is provided by the u-boot-fritz4040 package. If this is not build, > image creation > will fail with "file not found". The dependency com

Re: [OpenWrt-Devel] [PATCH] ipq40xx: fritz4040 depends on uboot-fritz4040

2019-11-10 Thread David Bauer
Hello Christian, On 11/10/19 1:10 AM, Christian Lamparter wrote: > Technically, the eva.bin isn't necessary. It allows for an easier > installation, but nobody apart from the 4040 uses the append-uboot > and there have been issues in the past with this as well. > > Question is: should we add that

Re: [OpenWrt-Devel] [PATCH] ath79: enable all space on Netgear ar9344-based WNDR routers

2019-11-12 Thread David Bauer
Hello Michal, On 11/12/19 2:02 PM, Michal Cieslakiewicz wrote: > Netgear WNDR routers (AR9344 models) like WNDR4300 have 128 MiB of flash > memory but only first 32 MiB are used now - both by vendor's firmware and > OpenWrt. This patch concatenates two regions of flash memory: ubi part > of firmwa

Re: [OpenWrt-Devel] [PATCH] ath79: rename EEPROM to art

2019-11-22 Thread David Bauer
Hello Adrian, On 11/22/19 2:45 PM, Adrian Schmutzler wrote: > This renames all remaining occurrences of "EEPROM" to "art" to > further harmonize the partition labelling in ath79. Hmm, I'm not sure if/why we should to these changes. Ubiquiti names these partitions "EEPROM" in their firmware and i

[OpenWrt-Devel] [PATCH] ramips: reorganize NETGAR sercomm boards

2019-11-23 Thread David Bauer
t;), which introduced inheritance between two completely unrelated base-boards. Signed-off-by: David Bauer --- .../linux/ramips/dts/mt7621_netgear_r6220.dts | 35 ++-- ...m.dtsi => mt7621_netgear_sercomm_ayx.dtsi} | 26 ++ .../dts/mt7621_netgear_sercomm_chj.dtsi | 90 ++- .

[OpenWrt-Devel] [PATCH] tools/expat: change package source to GitHub

2019-11-23 Thread David Bauer
According to the SourceForge page, the project is migrating to GitHub. Thus, change the source of the package to GitHub. Signed-off-by: David Bauer --- tools/expat/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/expat/Makefile b/tools/expat/Makefile index

[OpenWrt-Devel] [PATCH] generic ar8xxx: increase VLAN table for AR83x7

2019-11-24 Thread David Bauer
ns to allow them to work with a variable max VLAN count. Signed-off-by: David Bauer --- target/linux/generic/files/drivers/net/phy/ar8216.c | 10 +- target/linux/generic/files/drivers/net/phy/ar8216.h | 8 ++-- target/linux/generic/files/drivers/net/phy/ar8327.c | 4 ++-- 3 files change

Re: [OpenWrt-Devel] [PATCH] generic ar8xxx: increase VLAN table for AR83x7

2019-11-25 Thread David Bauer
Hello Jo, On 11/25/19 1:01 PM, Jo-Philipp Wich wrote: > Hi, > > does it make sense to keep the vlan/vid indirection if we increase the > table size to 4096? A simple 1:1 mapping of the vid to the table index > would be simpler and more robust from the configuration pov. i would like to keep it (

[OpenWrt-Devel] [PATCH] hostapd: enable CTRL_IFACE_MIB for hostapd-full

2019-12-05 Thread David Bauer
This enables the CTRL_IFACE_MIB symbol for wpad-full and hostapd-full. If it is not enabled, statistic outputs such as "hostapd_cli all_sta" are empty. Signed-off-by: David Bauer --- package/network/services/hostapd/files/hostapd-basic.config | 5 + package/network/services/hos

[OpenWrt-Devel] [PATCH] ar71xx: indicate upgrade using system LED

2019-12-14 Thread David Bauer
This enables the system LED to indicate a running firmware upgrade. This pattern is used on most platforms provided by the generic base-files package. ar71xx uses it's own implementation for the system-LED, where the upgrade case is not yet implemented. Signed-off-by: David Bauer --- t

[OpenWrt-Devel] [PATCH] mac80211: fix txpower when using DFS channels

2019-12-14 Thread David Bauer
With this patch, txpower for the PHY is applied when configuring the PHY instead of the VIF. Otherwise, the configured txpower is not applied for the first initialized VIF when using DFS channels, as it is currently applied to early when the CAC hasn't finished. Reported-by: Martin Weinelt --- .

[OpenWrt-Devel] [PATCH 1/2] ipq-wifi: add BDF for Aruba AP-303

2019-12-17 Thread David Bauer
The BDF originates from the vendor-firmware. Signed-off-by: David Bauer --- package/firmware/ipq-wifi/Makefile | 2 ++ .../ipq-wifi/board-aruba_ap-303.qca4019 | Bin 0 -> 24316 bytes 2 files changed, 2 insertions(+) create mode 100644 package/firmware/ipq-wifi/bo

[OpenWrt-Devel] [PATCH 2/2] ipq40xx: add support for Aruba AP-303

2019-12-17 Thread David Bauer
value: $ setenv bootcmd "boot" $ saveenv Signed-off-by: David Bauer --- .../ipq40xx/base-files/etc/board.d/02_network | 1 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 8 + target/linux/ipq40xx/base-files/etc/inittab | 1 + .../preinit/06_set_preinit_iface_ipq

Re: [OpenWrt-Devel] [PATCH 2/3] ath79: add support for Netgear WNDR4300 v2

2019-12-21 Thread David Bauer
Hello Michal, On 12/21/19 2:54 PM, Michal Cieslakiewicz wrote: > 1. NAND Flash (128 MiB) layout under OpenWrt is changed as follows: >all space is assigned to 'firmware' partition which is divided into >2 MiB kernel and 126 MiB UBI areas; vendor partitions (language and >mtdoops) are r

[OpenWrt-Devel] [PATCH] rt2x00: add throughput LED trigger

2019-12-29 Thread David Bauer
This adds a (currently missing) throughput LED trigger for the rt2x00 driver. Previously, LED triggers had to be assigned to the netdev, which was limited to a single VAP. Signed-off-by: David Bauer Tested-by: Christoph Krapp --- .../612-rt2x00-led-tpt-trigger-support.patch | 44

Re: [OpenWrt-Devel] Preserving configs over sysupgrade on ath79/tiny broken for some boards (on 19.07 and master), possible solutions

2019-12-30 Thread David Bauer
Hello, On 12/30/19 12:42 PM, Jo-Philipp Wich wrote: > Hi, > > given that (binary release) support for 4MB devices will end with 19.07, > I'd vote for reverting the 4K sector change in ath79 and stick with 64K > ones as common denominator across the entire target. That will be the > least invasive

Re: [OpenWrt-Devel] Preserving configs over sysupgrade on ath79/tiny broken for some boards (on 19.07 and master), possible solutions

2019-12-31 Thread David Bauer
Hello Paul, On 12/31/19 3:15 PM, Paul Fertser wrote: > Are any of you using the affected TP-Link boards or ath79/tiny or > 4 MiB devices in general? What features do you actually pack in them? > Do you plan to continue doing so past 19.XX release? I think most regular developers do not really use

[OpenWrt-Devel] [PATCH] ramips: convert TP-Link MT7620 boards to tpt trigger

2020-01-01 Thread David Bauer
This converts all MediaTek MT7620 boards from TP-Link to use the now supported WiFi throughput LED trigger. This way, the LED state now covers all VAPs regardless of their name. Signed-off-by: David Bauer --- target/linux/ramips/dts/mt7620a_tplink_archer-c2-v1.dts | 1 + target/linux/ramips

Re: [OpenWrt-Devel] [PATCH] ramips: convert TP-Link MT7620 boards to tpt trigger

2020-01-02 Thread David Bauer
Hello Adrian, On 1/2/20 4:25 PM, m...@adrianschmutzler.de wrote: > while I appreciate your patch, the choice of phy0tpt vs. phy1tpt looks > strange to me for several devices. E.g. for C20i you are converting a > phy0radio to a phy1tpt. Is this a mistake or a misunderstanding from my side? This

[OpenWrt-Devel] [PATCH] hostapd: disable ft_psk_generate_local for non-PSK networks

2020-01-05 Thread David Bauer
Without this commit, ft_psk_generate_local is enabled for non-PSK networks by default. This breaks 802.11r for EAP networks. Disable ft_psk_generate_local by default for non-PSK networks resolves this misbehavior. Reported-by: Martin Weinelt Signed-off-by: David Bauer Tested-by: Martin Weinelt

[OpenWrt-Devel] [PATCH] ipq40xx: add support for Aruba AP-303H

2020-01-11 Thread David Bauer
ly reset the bootcmd in the bootloader to the original value: $ setenv bootcmd "boot" $ saveenv Signed-off-by: David Bauer --- .../ipq40xx/base-files/etc/board.d/02_network | 5 + .../etc/hotplug.d/firmware/11-ath10k-caldata | 6 +- .../base-files/lib/upgrade/platform.

[OpenWrt-Devel] [PATCH] ath79: add support for D-Link DIR-505

2020-01-12 Thread David Bauer
by sysupgrading from an earlier OpenWrt version, U-Boot TFTP or a modded U-Boot. I do not have the original bootloader from D-Link on my device anymore, so i cannot test the factory image. Signed-off-by: David Bauer --- .../linux/ath79/dts/ar9330_dlink_dir-505.dts | 149

Re: [OpenWrt-Devel] OpenWrt 20.X release plans

2020-01-17 Thread David Bauer
Hello, On 1/17/20 11:14 AM, Andreas Ziegler wrote: > Hi, > > although i'm more a user than a developer, i would also prefer a sooner > release based on 4.19 over a later release based on 5.4. I have the same feeling. The state of many targets on 4.19 is pretty good IMHO. So i think a timely rele

[OpenWrt-Devel] [PATCH 2/2] generic at803x: remove unneeded patches

2020-01-21 Thread David Bauer
vice-tree compatible platforms by adding the "eee-broken-1000t" or "eee-broken-100tx" properties to the PHY node. As all usages of the old properties are migrated, this patch can be removed. Signed-off-by: David Bauer --- ...phy-at803x-allow-to-configure-via-dt.patch |

[OpenWrt-Devel] [PATCH 1/2] ath79: use upstream properties to disable EEE

2020-01-21 Thread David Bauer
EE is then disabled by the PHY subsystem. Tested on devolo WiFi pro 1200e. Signed-off-by: David Bauer --- target/linux/ath79/dts/qca9558_devolo_dvl1xxx.dtsi | 3 ++- target/linux/ath79/dts/qca9558_engenius_ecb1750.dts | 3 ++- target/linux/ath79/dts/qca9558_ocedo_koala.dts | 3 ++- target/

Re: [OpenWrt-Devel] [PATCH] ath79: move lzma-loader to the end of available RAM

2020-01-21 Thread David Bauer
Hello Adrian, On 1/21/20 9:57 PM, Adrian Schmutzler wrote: > @@ -10,7 +11,7 @@ define Build/loader-common > $(MAKE) -C lzma-loader \ > PKG_BUILD_DIR="$@.src" \ > TARGET_DIR="$(dir $@)" LOADER_NAME="$(notdir $@)" \ > - LZMA_TEXT_START=0x80a0 LOADADD

[PATCH 2/2] iwinfo: cli: fix hwmode formatting

2021-04-20 Thread David Bauer
The placeholder for the 802.11ax hwmode was missing. Signed-off-by: David Bauer --- iwinfo_cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iwinfo_cli.c b/iwinfo_cli.c index ee5a0e2..82b409c 100644 --- a/iwinfo_cli.c +++ b/iwinfo_cli.c @@ -274,12 +274,12 @@ static

[PATCH 1/2] iwinfo: nl80211: perform split wiphy dump

2021-04-20 Thread David Bauer
Perform a split wiphy dump when acquiring the hw modelist of a mac80211 device. Otherwise HE capabilities are missing from the message. This is necessary since upstream commit f8d504caa ("nl80211: reduce non-split wiphy dump size") (Kernel 5.9). Signed-off-by: David Bauer --- iwinfo

[PATCH] iwinfo: add 802.11ax HE rate information

2021-04-27 Thread David Bauer
This adds 802.11ax HE specific rate information to iwinfo. Add fields for HE status of a STA as well as DCM and guard interval fields specific to HE operation. Signed-off-by: David Bauer --- api/nl80211.h| 12 include/iwinfo.h | 3 +++ iwinfo_cli.c | 14

[PATCH rpcd] iwinfo: add 802.11ax HE support

2021-04-28 Thread David Bauer
Expose 802.11ax HE rate as well as HW / HT mode information. This is required to add 802.11ax support to LuCI. Signed-off-by: David Bauer --- iwinfo.c | 45 + 1 file changed, 45 insertions(+) diff --git a/iwinfo.c b/iwinfo.c index 63ff2a1..6b376c4

Re: [PATCH rpcd] iwinfo: add 802.11ax HE support

2021-04-28 Thread David Bauer
Hi, On 4/28/21 1:18 PM, Etienne Champetier wrote: > Hi David, > > Le mer. 28 avr. 2021 à 07:07, David Bauer a écrit : >> >> Expose 802.11ax HE rate as well as HW / HT mode information. This is >> required to add 802.11ax support to LuCI. >> >> Signed-o

Re: [RFC PATCH] mac80211: use auto channel list by default

2021-05-02 Thread David Bauer
Hi Hauke, On 5/3/21 12:23 AM, Hauke Mehrtens wrote: > This change removes setting the channels property by default to the > channel property if nothing else is specified. > > When hostapd detects a DFS alarm and it has to switch channels allow > hostapd to switch to any channel in the frequency b

[PATCH 1/2] wolfssl: always export wc_ecc_set_rng

2021-05-18 Thread David Bauer
ss whether or not wolfssl is compiled hardened. Always export wc_ecc_set_rng so tools such as hostapd can install RNG regardless of the built settings for wolfssl. Signed-off-by: David Bauer --- package/libs/wolfssl/Makefile | 2 +- .../libs/wolfssl/patches/200-ecc-rng.pat

[PATCH 0/2] Fix OWE mode with hostapd-wolfssl

2021-05-18 Thread David Bauer
key and WolfSSL to export the interface regardless of the build settings. David Bauer (2): wolfssl: always export wc_ecc_set_rng hostapd: wolfssl: add RNG to EC key package/libs/wolfssl/Makefile | 2 +- .../libs/wolfssl/patches/200-ecc-rng.patch| 50

[PATCH 2/2] hostapd: wolfssl: add RNG to EC key

2021-05-18 Thread David Bauer
Since upstream commit 6467de5a8840 ("Randomize z ordinates in scalar mult when timing resistant") WolfSSL requires a RNG for the EC key when built hardened which is the default. Set the RNG for the EC key to fix connections for OWE clients. Signed-off-by: David Bauer --- packa

Re: [PATCH 2/2] ethtool: add optional netlink support

2021-05-26 Thread David Bauer
Hi Robert, On 5/16/21 6:01 PM, Robert Marko wrote: > Netlink support is required for stuff like cable testing, > so offer it as an option. > > Signed-off-by: Robert Marko > --- > package/network/utils/ethtool/Makefile | 11 ++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff

Re: [PATCH] ipq806x: fix LAN and WAN port assignments on TP-Link AD7200

2021-06-03 Thread David Bauer
Hi Alex, On 6/3/21 8:18 AM, Alex Henrie wrote: > LAN port 4 was swapped with the WAN port and the remaining three LAN > ports were numbered in reverse order from their labels on the case. > > Fixes: 1a775a4fd033 ("ipq806x: add support for TP-Link Talon AD7200") > Signed-off-by: Alex Henrie > ---

Re: [PATCH v2] ramips: fix at803x patch again

2021-06-04 Thread David Bauer
Hi, On 6/4/21 7:12 AM, DENG Qingfang wrote: > Commit 8222f8e1b9be overrides AR8031's PHY features, making its SFP > link status detection unavailable. To fix that, do not override it in > ramips patch. As the original patch still has to be backported to 21.02, I'd propose to remove my hacks and i

Re: [PATCH v2] ramips: fix at803x patch again

2021-06-04 Thread David Bauer
Hi, On 6/4/21 10:57 AM, DENG Qingfang wrote: > Hi, > > On Fri, Jun 4, 2021 at 3:37 PM David Bauer wrote: >> As the original patch still has to be backported to 21.02, I'd propose >> to remove my hacks and instead properly backport c329e5af and 8f7e8762 >> from u

Re: [PATCH v2] ramips: fix at803x patch again

2021-06-11 Thread David Bauer
Hi, On 6/11/21 8:08 AM, DENG Qingfang wrote: > Hi David, > > Unfortunately, the issue is still not resolved, according to Minqiang. > Reverting your 2 commits and applying my patch fixes the issue. Can you be more precise in terms of which issues are you facing? The PHY capabilities on the AR83

Re: [PATCH v2] ramips: fix at803x patch again

2021-06-12 Thread David Bauer
Hi John, On 6/12/21 12:51 AM, John Thomson wrote: On Fri, 11 Jun 2021, at 08:10, David Bauer wrote: Can you be more precise in terms of which issues are you facing? The PHY capabilities on the AR8333 now read 1000B-X as a supported link mode, so fiber operation should be possible. Can you

Re: [OpenWrt-Devel] mt76x8: Onion Omega2+ reboot problem [Was: mt76x8: Strange GPIO numbering on Onion Omega2+]

2021-06-13 Thread David Bauer
Hi Lukas, On 6/13/21 11:43 AM, Lukas Zeller wrote: > But I was curious to learn what the feature does, and had a look at spi-nor.c > (spi_nor/core.c). If I haven't misread the code, it restores the addressing > mode to 3 byte at shutdown. This means an orderly reboot will work, but a > unexpect

[PATCH] ath79: resolve GPIO address conflicts

2021-06-30 Thread David Bauer
hese cases and align the address space of the GPIO controller between all SoCs, as the used address space of the driver is identical for all these. Signed-off-by: David Bauer --- target/linux/ath79/dts/ar7100.dtsi | 2 +- target/linux/ath79/dts/ar724x.dtsi | 2 +- target/linux/ath79/dts/ar9132.dtsi

Re: [PATCH] uqmi: Move to community packages repo

2021-07-01 Thread David Bauer
[resend, as I've missed to keep the list CC'ed] Hi Arjun On 7/1/21 9:50 PM, Arjun AK wrote: Signed-off-by: Arjun AK Describing the rationale of this change would've been nice. This package is used on most boards with a cellular modem to provide ootb internet capability, so please explain h

[PATCH] generic: Kconfig: exit on unset symbol

2021-08-04 Thread David Bauer
configuration in a way it fails on unset symbols regardless of the aformentioned preconditions. Signed-off-by: David Bauer --- include/kernel-build.mk | 1 + target/linux/generic/hack-5.10/205-kconfig-exit.patch | 11 +++ target/linux/generic/hack-5.4/205

Re: [PATCH] ath79: add support for onion omega

2021-08-12 Thread David Bauer
Hi Jan-Niklas, On 8/11/21 6:54 PM, Jan-Niklas Burfeind wrote: > The Onion Omega is a hardware development platform with built-in WiFi. > > https://onioniot.github.io/wiki/ > > Specifications: > - QCA9331 @ 400 MHz (MIPS 24Kc Big-Endian Processor) > - 64MB of DDR2 RAM running at 400 MHz > - 16

Re: [PATCH v2] ath79: add support for onion omega

2021-08-14 Thread David Bauer
Hi Jan, looks pretty solid to me. On 8/14/21 2:33 PM, Jan-Niklas Burfeind wrote: ... > +define Device/onion_omega > + $(Device/tplink-16mlzma) > + SOC := ar9331 > + DEVICE_VENDOR := Onion > + DEVICE_MODEL := Omega > + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 AR9331 uses a different USB

Broken ARP broadcast on master (commit 0f688797)

2021-09-05 Thread David Bauer
Hi Felix, updating my Wireless APs (ath9k+ath10k / mt7603+mt7915) broke ARP broadcast delivery to clients connected to the radios with SW rate control. Bisecting this problem revealed commit 0f688797 ("mac80211: add missing change for encap offload on devices with sw rate control") introduces t

Re: Broken ARP broadcast on master (commit 0f688797)

2021-09-06 Thread David Bauer
Hi Felix, On 9/6/21 2:18 PM, Felix Fietkau wrote: > >> On 6. Sep 2021, at 02:03, David Bauer wrote: >> >> Hi Felix, >> >> updating my Wireless APs (ath9k+ath10k / mt7603+mt7915) broke ARP broadcast >> delivery to clients >> connected to the radi

[PATCH usteer] usteer: add support for IPv6 remote exchange

2021-09-07 Thread David Bauer
. Signed-off-by: Jan Braun [squash commits - adapt usock usage] Signed-off-by: David Bauer --- main.c | 1 - openwrt/usteer/files/etc/config/usteer | 3 + openwrt/usteer/files/etc/init.d/usteer | 1 + remote.c | 172

Re: [PATCH] realtek-poe: add support for PoE on Realtek switches

2021-09-26 Thread David Bauer
Hi Bjorn, Hi John, On 9/26/21 10:43, Bjørn Mork wrote: John Crispin writes: poemgr does not use the APIs provided by libubox so I doubt that this will land in the tree. It's going through the packages repo according to https://github.com/openwrt/openwrt/commit/a9839697896c4fdf8c44a06bbce466

Re: [PATCH] ath79/ag71xx: rearrange ag71xx structs to remove holes

2021-09-26 Thread David Bauer
Hi Rui, Hi Rosen, On 9/19/21 12:38, Rui Salvaterra wrote: The ag71xx_ring changes are already part of the upstream driver. However, since we're not using it at all yet, let's apply this to our driver for the time being, as David explicitly requests performance numbers before applying it upstream

Re: [PATCH] realtek-poe: add support for PoE on Realtek switches

2021-09-26 Thread David Bauer
Hi John, On 9/26/21 14:31, John Crispin wrote: On 26.09.21 13:34, David Bauer wrote: That being set, the goal of poemgr is not to replace the other efforts. I'm sorry if I caused this impression. it did not replace anything. I am fully with you on this one, realtek-poe took the

[PATCH usteer] policy: avoid creating kick loop for client

2021-10-04 Thread David Bauer
after association. In the worst scenario the client immediatly associates again to the station and ends up in a kick loop. Don't allow associating when a min_snr is configured and the client signal is below this value. Signed-off-by: David Bauer --- policy.c | 18 -- 1 file ch

[PATCH] hostapd: ubus: add notification for BSS transition response

2021-10-06 Thread David Bauer
To allow steering daemons to be aware of the STA-decided transition target, publish WNM transition responses to ubus. This way, steerings daemons can learn about STA-chosen targets and send a better selection of transition candidates. Signed-off-by: David Bauer --- .../hostapd/patches/600

[PATCH] hostapd: ubus: add BSS transtiton request method

2021-10-06 Thread David Bauer
) will be invalid neighbors: blob-array - Array of strings containing neighbor reports as hex-string Signed-off-by: David Bauer --- .../services/hostapd/src/src/ap/ubus.c| 152 +- 1 file changed, 112 insertions(+), 40 deletions(-) diff --git a/package/network

Re: hostapd: ubus inteface crashes hostapd?

2021-10-21 Thread David Bauer
Hi Nick, On 10/21/21 11:31, Nick wrote: Is someone massively utilizing the ubus interface from hostapd? I'm doing this with dawn and I saw that blocktrron already fixed some infinity loop. However, currently DAWN is crashing the hostapd. I make extensive use of the get_clients, all subscripti

Re: [PATCH] FritzBox-4040-UBOOT: Allow for easier devices recovery

2021-11-23 Thread David Bauer
U-Boot and sideloading via EVA. So a network request for a boot image raises more problems than it tries to solve. Best David Signed-off-by: Enrico Mioso CC: Christian Lamparter CC: David Bauer --- Reasons for this patch: 1 - There are situations where it can be nice to recover a device withou

Re: P2812HNUF3

2021-12-09 Thread David Bauer
Hi Ivar, Hi Daniel, On 12/9/21 23:12, Daniel Golle wrote: Hi Ivar, On Thu, Dec 09, 2021 at 10:14:22PM +0100, Ivar Orskaug wrote: Hi, P2812HNUF3 is currently broken in main because of the kernel 5.10 increase in size. This patch increases the kernel flash partition to 3072k, aligning with P2812

Re: Macronix Flash-Chip Block Protection Clearing 5.10er

2021-12-25 Thread David Bauer
Hi Nick, On 12/25/21 16:49, Nick wrote: The flash-chip mx25l6405d that is contained in the Ubiquity Nanostation M5 (XM) is not able to write to the flash with kernel 5.10. Probably, caused by invalid block protection clearing. For example the logread contains a lot of those messages:     jf

Re: Switch issues and CI to GitHub

2022-01-09 Thread David Bauer
Hi Hauke, On 1/9/22 17:55, Hauke Mehrtens wrote: The criteria from gnu.org are irrelevant to me and I agree with Rosen and Bjørn on that topic. I would prefer a vote like this, this is just an example not the official vote: - Migrate bug reporting from bugs.openwrt.org to githu

[PATCH 2/2] hostapd: refresh patches

2022-01-17 Thread David Bauer
Refresh patches after updating to hostapd v2.10. Signed-off-by: David Bauer --- .../001-wolfssl-init-RNG-with-ECC-key.patch | 6 ++-- ...erministic-channel-on-channel-switch.patch | 6 ++-- ...ix-sta-add-after-previous-connection.patch | 4 +-- ...ewrite-neigh-code-to-not-depend-on-l.patch

[PATCH 1/2] hostapd: update to v2.10

2022-01-17 Thread David Bauer
-compilation-with-Hotspot-2.0-disabled.patch 08bdf4f90de61a84ed8f4dd918272dd9d36e2e1f Compile-tested: wpad-wolfssl hostapd-openssl Run-tested: ath79-generic Signed-off-by: David Bauer --- package/network/services/hostapd/Makefile | 6 +- ...hannels-to-be-selected-if-dfs-is-ena.patch | 60

Re: [PATCH 2/2] hostapd: refresh patches

2022-02-07 Thread David Bauer
Hi Stijn, On 2/7/22 20:48, Stijn Tintel wrote: On 17/01/2022 21:57, David Bauer wrote: Refresh patches after updating to hostapd v2.10. We usually combine bump and patch refresh in the same commit. I don't like doing it in this case, as it makes the delta of patches / their content h

Re: [PATCH] hostapd: fallback to psk when generating r0kh/r1kh

2022-02-18 Thread David Bauer
Hi Eneas, On 1/7/22 21:19, Eneas U de Queiroz wrote: The 80211r r0kh and r1kh defaults are generated from the md5sum of "$mobility_domain/$auth_secret". auth_secret is only set when using EAP authentication, but the default key is used for SAE/PSK as well. In this case, auth_secret is empty,

Re: [PATCH] usteer: Fix better candidate not being set in policy

2022-05-17 Thread David Bauer
Hi, On 5/17/22 14:12, Wojciech Dubowik wrote: The candidate is never set in this loop. Fix it by setting it to the first valid entry. Applied to master. Thanks! Best David Signed-off-by: Wojciech Dubowik --- policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p

[PATCH 2/3] hostapd: randomize default BSS color

2022-06-06 Thread David Bauer
In case no specific BSS color is configured, set it to a random value. Signed-off-by: David Bauer --- .../files/lib/netifd/wireless/mac80211.sh | 4 +++- ...tapd-config-support-random-BSS-color.patch | 24 +++ ...750-qos_map_set_without_interworking.patch | 2 +- 3 files

[PATCH 1/3] hostapd: update to 2022-05-08

2022-06-06 Thread David Bauer
Update hostapd to Git HEAD from 2022-05-08. This allows us to take advantage of background radar-detection ad well as BSS color collision. Suggested-by: Lorenzo Bianconi Signed-off-by: David Bauer --- package/network/services/hostapd/Makefile | 6 +- .../hostapd/files/wpa_supplicant

[PATCH 3/3] hostapd: ubus: add bss-color to get_status

2022-06-06 Thread David Bauer
Add the current BSS color to hostapd get_status method. This field is set to -1 in case BSS color is not active for the BSS. Signed-off-by: David Bauer --- package/network/services/hostapd/src/src/ap/ubus.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/package/network/services

Re: [PATCH 2/4] hostapd: enable MBO if 802.11ax is enabled

2022-06-22 Thread David Bauer
Hi Stijn, On 6/21/22 15:36, Stijn Tintel wrote: Multi Band Operation is required for 802.11ax certification, so let's enable it if 802.11ax support is enabled. I'd suggest we enable it for the -full build variants unconditionally. Best David Signed-off-by: Stijn Tintel --- package/netwo

Re: [PATCH 2/4] hostapd: enable MBO if 802.11ax is enabled

2022-06-24 Thread David Bauer
Hi Stijn, On 6/24/22 15:05, Stijn Tintel wrote: On 23/06/2022 00:47, David Bauer wrote: Hi Stijn, On 6/21/22 15:36, Stijn Tintel wrote: Multi Band Operation is required for 802.11ax certification, so let's enable it if 802.11ax support is enabled. I'd suggest we enable it for

Re: [PATCH] ramips: fix Unifi 6 Lite boot failure with v5.15 kernels

2022-11-05 Thread David Bauer
Hi Bjorn, On 11/4/22 09:29, Bjørn Mork wrote: You are right that the bootloader must be fixed. But the vendor isn't likely to do that as long as they run older kernels. I believe the OpenWrt policy in such cases is to try to work around the issue. Replacing the vendor bootloader is a last resor

Re: [PATCH] ramips: fix Unifi 6 Lite boot failure with v5.15 kernels

2022-11-07 Thread David Bauer
Hi Bjorn, On 11/7/22 13:57, Bjørn Mork wrote: Jonas Gorski writes: On Sun, 6 Nov 2022 at 12:50, Bjørn Mork wrote: Jonas Gorski writes: An option is also to set a load address for the dtb in the FIT image, then U-Boot will relocate it before passing it to the kernel. Yes, that is worth t

Re: [PATCH] sunxi: ensure NanoPi R1 has unique MAC address

2022-12-22 Thread David Bauer
Hi Jan-Niklas, On 12/22/22 21:12, Jan-Niklas Burfeind wrote: +generate_mac_from_mmc_cid() +{ + local mmc_dev=$1 + + local sd_hash=$(sha256sum/sys/class/block/$mmc_dev/device/cid) + local mac_base=$(macaddr_canonicalize "$(echo "${sd_hash}" | dd bs=1 count=12 2>/dev/null)") +

<    1   2   3   4   5   >