Re: [PATCH v2] openssl: use --cross-compile-prefix in Configure

2020-11-28 Thread Rosen Penev
On Sat, Nov 28, 2020 at 1:06 PM Eneas U de Queiroz
 wrote:
>
> This sets the --cross-compile-prefix option when running Configure, so
> that that it will not use the host gcc to figure out, among other
> things, compiler defines.  It avoids errors, if the host 'gcc' is
> handled by clang:
>
> mips-openwrt-linux-musl-gcc: error: unrecognized command-line option
> '-Qunused-arguments'
>
> Signed-off-by: Eneas U de Queiroz 
Tested-by: Rosen Penev 
>
> ---
> neheb, or anyone else affected, please test this patch to see if what
> I'm claiming is actually true.  At least it does not appear to break
> compilation in my case ;-)
works here as well. Fedora 32.
>
> Compile-tested using a Gentoo host, and mvebu as target.
>
> Changelog
>
> v1 -> v2
> Since the cross prefix is set in Configure, we don't need to overide
> it when calling make
>
> diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile
> index 9696748106..77c6d41cec 100644
> --- a/package/libs/openssl/Makefile
> +++ b/package/libs/openssl/Makefile
> @@ -11,7 +11,7 @@ PKG_NAME:=openssl
>  PKG_BASE:=1.1.1
>  PKG_BUGFIX:=h
>  PKG_VERSION:=$(PKG_BASE)$(PKG_BUGFIX)
> -PKG_RELEASE:=1
> +PKG_RELEASE:=2
>  PKG_USE_MIPS16:=0
>  ENGINES_DIR=engines-1.1
>
> @@ -333,6 +333,7 @@ define Build/Configure
> --prefix=/usr \
> --libdir=lib \
> --openssldir=/etc/ssl \
> +   --cross-compile-prefix="$(TARGET_CROSS)" \
> $(TARGET_CPPFLAGS) \
> $(TARGET_LDFLAGS) \
> $(OPENSSL_OPTIONS) && \
> @@ -345,14 +346,12 @@ TARGET_LDFLAGS += -Wl,--gc-sections
>
>  define Build/Compile
> +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
> -   CROSS_COMPILE="$(TARGET_CROSS)" \
> CC="$(TARGET_CC)" \
> SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \
> OPENWRT_OPTIMIZATION_FLAGS="$(TARGET_CFLAGS)" \
> $(OPENSSL_MAKEFLAGS) \
> all
> $(MAKE) -C $(PKG_BUILD_DIR) \
> -   CROSS_COMPILE="$(TARGET_CROSS)" \
> CC="$(TARGET_CC)" \
> DESTDIR="$(PKG_INSTALL_DIR)" \
> $(OPENSSL_MAKEFLAGS) \

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH v2] openssl: use --cross-compile-prefix in Configure

2020-11-28 Thread Eneas U de Queiroz
This sets the --cross-compile-prefix option when running Configure, so
that that it will not use the host gcc to figure out, among other
things, compiler defines.  It avoids errors, if the host 'gcc' is
handled by clang:

mips-openwrt-linux-musl-gcc: error: unrecognized command-line option
'-Qunused-arguments'

Signed-off-by: Eneas U de Queiroz 

---
neheb, or anyone else affected, please test this patch to see if what
I'm claiming is actually true.  At least it does not appear to break
compilation in my case ;-)

Compile-tested using a Gentoo host, and mvebu as target.

Changelog

v1 -> v2
Since the cross prefix is set in Configure, we don't need to overide
it when calling make

diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile
index 9696748106..77c6d41cec 100644
--- a/package/libs/openssl/Makefile
+++ b/package/libs/openssl/Makefile
@@ -11,7 +11,7 @@ PKG_NAME:=openssl
 PKG_BASE:=1.1.1
 PKG_BUGFIX:=h
 PKG_VERSION:=$(PKG_BASE)$(PKG_BUGFIX)
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_USE_MIPS16:=0
 ENGINES_DIR=engines-1.1
 
@@ -333,6 +333,7 @@ define Build/Configure
--prefix=/usr \
--libdir=lib \
--openssldir=/etc/ssl \
+   --cross-compile-prefix="$(TARGET_CROSS)" \
$(TARGET_CPPFLAGS) \
$(TARGET_LDFLAGS) \
$(OPENSSL_OPTIONS) && \
@@ -345,14 +346,12 @@ TARGET_LDFLAGS += -Wl,--gc-sections
 
 define Build/Compile
+$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
-   CROSS_COMPILE="$(TARGET_CROSS)" \
CC="$(TARGET_CC)" \
SOURCE_DATE_EPOCH=$(SOURCE_DATE_EPOCH) \
OPENWRT_OPTIMIZATION_FLAGS="$(TARGET_CFLAGS)" \
$(OPENSSL_MAKEFLAGS) \
all
$(MAKE) -C $(PKG_BUILD_DIR) \
-   CROSS_COMPILE="$(TARGET_CROSS)" \
CC="$(TARGET_CC)" \
DESTDIR="$(PKG_INSTALL_DIR)" \
$(OPENSSL_MAKEFLAGS) \

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH] openssl: use --cross-compile-prefix in Configure

2020-11-28 Thread Eneas U de Queiroz
This sets the --cross-compile-prefix option when running Configure, so
that that it will not use the host gcc to figure out, among other
things, compiler defines.  It avoids an error, when the host 'gcc' is
handled by clang:

mips-openwrt-linux-musl-gcc: error: unrecognized command-line option
'-Qunused-arguments'

Signed-off-by: Eneas U de Queiroz 

---

neheb, or anyone else affected, please test this patch to see if what
I'm claiming is actually true.  At least it does not appear to break
compilation in my case ;-)

Compile-tested using a Gentoo host, and mvebu as target.

diff --git a/package/libs/openssl/Makefile b/package/libs/openssl/Makefile
index 9696748106..3c0e8c5d2d 100644
--- a/package/libs/openssl/Makefile
+++ b/package/libs/openssl/Makefile
@@ -11,7 +11,7 @@ PKG_NAME:=openssl
 PKG_BASE:=1.1.1
 PKG_BUGFIX:=h
 PKG_VERSION:=$(PKG_BASE)$(PKG_BUGFIX)
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 PKG_USE_MIPS16:=0
 ENGINES_DIR=engines-1.1
 
@@ -333,6 +333,7 @@ define Build/Configure
--prefix=/usr \
--libdir=lib \
--openssldir=/etc/ssl \
+   --cross-compile-prefix="$(TARGET_CROSS)" \
$(TARGET_CPPFLAGS) \
$(TARGET_LDFLAGS) \
$(OPENSSL_OPTIONS) && \

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: odhcp6c RENEW timeout issue leads to OOM/OOPS [Was: Re: QEMU x86/64 ubus issues ... ]

2020-11-28 Thread Hans Dedecker
Hi,

On Sat, Nov 28, 2020 at 5:04 PM Petr Štetiar  wrote:
>
> Hans Dedecker  [2020-11-26 21:19:30]:
>
> Hi,
>
> > Is it possible to have a pcap trace of the DHCPv6 messages on the wan ?
> > I hope to find some time next weekend to investigate the issue further
>
> http://ynezz.true.cz/openwrt/odhcp6c/capture.pcap.gz#
Thank you for the traces; looking into the DHCPv6 packets make the issue clear.
Packet 22 is a DHCPv6 reply packet in response to a renew which in its
turn is triggered by a DHCPv6 reconfigure packet.
The packet contains an IA-PD option but no IA prefix option which is
strange. According to the DHCPv6 RFC renew messages must be kept
sending when T1 has expired for either an IA address or IA prefix when
the server does not reply the IA address or IA prefix which is
happening in this case.
I will do further investigation how we could protect odhpc6c against
such DHCPv6 server behavior

Hans
>
> Cheers,
>
> Petr

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: perl/host/compile: fails on macOS 11 Big Sur, workaround

2020-11-28 Thread Georgi Valkov
Hello Rosen and Philip!

I created a draft pull-request as suggested by Rosen.
I also added description in the patch, and made minor corrections.
The macOS version check in hints/darwin.sh now matches perl-5.33.4,
However the rest of the changes are not in the patch, since I am not sure
If the rest of the code will work with them.
Unfortunately my previous e-mail to Philip was not delivered.
https://github.com/openwrt/packages/pull/14054


> On 2020-11-26, at 12:59 AM, Rosen Penev  wrote:
> 
> On Tue, Nov 24, 2020 at 12:08 PM Georgi Valkov  wrote:
>> 
>> Thank you, Philip!
>> Here it is the patch:
> Please post this on https://github.com/openwrt/packages/pulls . This
> patch does not apply locally.
>> 
>> 
>> From a5c62c0dd2b4dabf72571239f08266b348dad5a2 Mon Sep 17 00:00:00 2001
>> From: Georgi Valkov 
>> Date: Tue, 24 Nov 2020 22:02:30 +0200
>> Subject: [PATCH] perl: switch to 5.30.0
>> 
>> perl: switch to 5.30.0
>> 
>> Signed-off-by: Georgi Valkov 
>> ---
>> feeds/packages/lang/perl/Makefile |   4 +-
>> feeds/packages/lang/perl/files/base.config|   4 +
>> feeds/packages/lang/perl/files/version.config |   6 +-
>> .../patches/020-storables-stacksize.patch |  66 ---
>> .../perl/patches/302-macos_11_support.patch   |   6 +-
>> .../lang/perl/patches/900-use-rm-force.patch  | 285 -
>> .../patches/910-miniperl-needs-inc-dot.patch  |  22 +-
>> .../lang/perl/patches/920-fix-no-locale.patch | 383 --
>> .../perl/patches/998-Errno_errno.h_path.patch |  11 -
>> ...999-fix-build-failure-against-gcc-10.patch | 103 -
>> feeds/packages/lang/perl/perlver.mk   |   5 +-
>> 11 files changed, 28 insertions(+), 867 deletions(-)
>> delete mode 100644 
>> feeds/packages/lang/perl/patches/020-storables-stacksize.patch
>> delete mode 100644 feeds/packages/lang/perl/patches/900-use-rm-force.patch
>> delete mode 100644 feeds/packages/lang/perl/patches/920-fix-no-locale.patch
>> delete mode 100644 
>> feeds/packages/lang/perl/patches/998-Errno_errno.h_path.patch
>> delete mode 100644 
>> feeds/packages/lang/perl/patches/999-fix-build-failure-against-gcc-10.patch
>> 
>> diff --git a/feeds/packages/lang/perl/Makefile 
>> b/feeds/packages/lang/perl/Makefile
>> index 84d256d..5e5ded2 100644
>> --- a/feeds/packages/lang/perl/Makefile
>> +++ b/feeds/packages/lang/perl/Makefile
>> @@ -11,7 +11,7 @@ include perlver.mk
>> 
>> PKG_NAME:=perl
>> PKG_VERSION:=$(PERL_VERSION)
>> -PKG_RELEASE:=4
>> +PKG_RELEASE:=1
>> 
>> PKG_SOURCE_URL:=\
>>https://cpan.metacpan.org/src/5.0 \
>> @@ -21,7 +21,7 @@ PKG_SOURCE_URL:=\
>>https://mirrors.sonic.net/cpan/src/5.0 \
>>https://www.cpan.org/src/5.0
>> PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
>> -PKG_HASH:=fea7162d4cca940a387f0587b93f6737d884bf74d8a9d7cfd978bc12cd0b202d
>> +PKG_HASH:=ac501cad4af904d33370a9ea39dbb7a8ad4cb19bc7bc8a9c17d8dc3e81ef6306
>> 
>> PKG_LICENSE:=GPL-1.0-or-later Artistic-1.0-Perl
>> PKG_LICENSE_FILES:=Copying Artistic README
>> diff --git a/feeds/packages/lang/perl/files/base.config 
>> b/feeds/packages/lang/perl/files/base.config
>> index f2d18f5..5551588 100644
>> --- a/feeds/packages/lang/perl/files/base.config
>> +++ b/feeds/packages/lang/perl/files/base.config
>> @@ -436,6 +436,7 @@ d_sethostent_r='undef'
>> d_setitimer='define'
>> d_setlinebuf='define'
>> d_setlocale='define'
>> +d_setlocale_accepts_any_locale_name='undef'
>> d_setlocale_r='undef'
>> d_setnent='define'
>> d_setnetent_r='undef'
>> @@ -543,6 +544,8 @@ d_timegm='define'
>> d_times='define'
>> d_tm_tm_gmtoff='define'
>> d_tm_tm_zone='define'
>> +d_towlower='undef'
>> +d_towupper='undef'
>> d_trunc='define'
>> d_truncate='define'
>> d_truncl='define'
>> @@ -737,6 +740,7 @@ i_varargs='undef'
>> i_varhdr='stdarg.h'
>> i_vfork='undef'
>> i_wchar='define'
>> +i_wctype='define'
>> i_xlocale='undef'
>> ignore_versioned_solibs='y'
>> inc_version_list=' '
>> diff --git a/feeds/packages/lang/perl/files/version.config 
>> b/feeds/packages/lang/perl/files/version.config
>> index b318648..b80127a 100644
>> --- a/feeds/packages/lang/perl/files/version.config
>> +++ b/feeds/packages/lang/perl/files/version.config
>> @@ -1,11 +1,11 @@
>> # Set the version here
>> PERL_REVISION=5
>> -PERL_VERSION=28
>> -PERL_SUBVERSION=1
>> +PERL_VERSION=30
>> +PERL_SUBVERSION=0
>> 
>> # (api_revison, api_version, api_subversion) = (revision, version, 0) usually
>> PERL_API_REVISION=5
>> -PERL_API_VERSION=28
>> +PERL_API_VERSION=30
>> PERL_API_SUBVERSION=0
>> 
>> known_extensions='B Compress/Raw/Zlib Cwd DB_File Data/Dumper Devel/DProf 
>> Devel/PPPort Devel/Peek Digest/MD5 Digest/SHA Encode Fcntl File/Glob 
>> Filter/Util/Call GDBM_File Hash/Util I18N/Langinfo IO IPC/SysV List/Util 
>> MIME/Base64 Math/BigInt/FastCalc NDBM_File ODBM_File Opcode POSIX 
>> PerlIO/encoding PerlIO/scalar PerlIO/via SDBM_File Socket Storable 
>> Sys/Hostname Sys/Syslog Text/Soundex Time/HiRes Time/Piece Unicode/Normalize 
>> Win32 Win32API/File Win32CORE 

Re: odhcp6c RENEW timeout issue leads to OOM/OOPS [Was: Re: QEMU x86/64 ubus issues ... ]

2020-11-28 Thread Petr Štetiar
Hans Dedecker  [2020-11-26 21:19:30]:

Hi,

> Is it possible to have a pcap trace of the DHCPv6 messages on the wan ?
> I hope to find some time next weekend to investigate the issue further

http://ynezz.true.cz/openwrt/odhcp6c/capture.pcap.gz

Cheers,

Petr

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] cmake.mk, rules.mk: fix host builds using CMake and ccache

2020-11-28 Thread Petr Štetiar
Ansuel Smith  [2020-11-28 15:13:32]:

Hi,

> Can confirm that this fix the bug.

sorry for the breakage and thank you for testing.

Cheers,

Petr

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] cmake.mk, rules.mk: fix host builds using CMake and ccache

2020-11-28 Thread Ansuel Smith
On Fri, Nov 27, 2020 at 03:47:45PM -0800, Rosen Penev wrote:
> On Fri, Nov 27, 2020 at 2:04 PM Petr Štetiar  wrote:
> >
> > Commit f98878e4c17d ("cmake.mk: set C/CXX compiler for host builds as
> > well") has introduced regression as it didn't taken usage of ccache into
> > the account so fix it by handling ccache use cases as well.
> >
> > In order to get this working we need to export HOSTCXX_NOCACHE in
> > rules.mk as well.
> That's annoying. I didn't know ccache was used with host packages.
> >

Can confirm that this fix the bug.
Tested-by: Ansuel Smith 

> > Fixes: f98878e4c17d ("cmake.mk: set C/CXX compiler for host builds as well")
> > Reported-by: Ansuel Smith 
> Acked-by: Rosen Penev 
> > Signed-off-by: Petr Štetiar 
> > ---
> >  include/cmake.mk | 18 --
> >  rules.mk |  1 +
> >  2 files changed, 17 insertions(+), 2 deletions(-)
> >
> > diff --git a/include/cmake.mk b/include/cmake.mk
> > index 2cc10301aa4e..0a20530a16fe 100644
> > --- a/include/cmake.mk
> > +++ b/include/cmake.mk
> > @@ -23,12 +23,22 @@ ifeq ($(CONFIG_CCACHE),)
> >   CMAKE_CXX_COMPILER:=$(call cmake_tool,$(TARGET_CXX))
> >   CMAKE_C_COMPILER_ARG1:=
> >   CMAKE_CXX_COMPILER_ARG1:=
> > +
> > + CMAKE_HOST_C_COMPILER:=$(HOSTCC)
> > + CMAKE_HOST_CXX_COMPILER:=$(HOSTCXX)
> > + CMAKE_HOST_C_COMPILER_ARG1:=
> > + CMAKE_HOST_CXX_COMPILER_ARG1:=
> >  else
> >CCACHE:=$(STAGING_DIR_HOST)/bin/ccache
> >CMAKE_C_COMPILER:=$(CCACHE)
> >CMAKE_C_COMPILER_ARG1:=$(TARGET_CC_NOCACHE)
> >CMAKE_CXX_COMPILER:=$(CCACHE)
> >CMAKE_CXX_COMPILER_ARG1:=$(TARGET_CXX_NOCACHE)
> > +
> > +  CMAKE_HOST_C_COMPILER:=$(CCACHE)
> > +  CMAKE_HOST_C_COMPILER_ARG1:=$(HOSTCC_NOCACHE)
> > +  CMAKE_HOST_CXX_COMPILER:=$(CCACHE)
> > +  CMAKE_HOST_CXX_COMPILER_ARG1:=$(HOSTCXX_NOCACHE)
> >  endif
> >  CMAKE_AR:=$(call cmake_tool,$(TARGET_AR))
> >  CMAKE_NM:=$(call cmake_tool,$(TARGET_NM))
> > @@ -97,8 +107,12 @@ define Host/Configure/Default
> > LDFLAGS="$(HOST_LDFLAGS)" \
> > cmake \
> > -DCMAKE_BUILD_TYPE=Release \
> > -   -DCMAKE_C_COMPILER="$(HOSTCC)" \
> > -   -DCMAKE_CXX_COMPILER="$(HOSTCXX)" \
> > +   -DCMAKE_C_COMPILER="$(CMAKE_HOST_C_COMPILER)" \
> > +   
> > -DCMAKE_C_COMPILER_ARG1="$(CMAKE_HOST_C_COMPILER_ARG1)" \
> > +   -DCMAKE_CXX_COMPILER="$(CMAKE_HOST_CXX_COMPILER)" \
> > +   
> > -DCMAKE_CXX_COMPILER_ARG1="$(CMAKE_HOST_CXX_COMPILER_ARG1)" \
> > +   -DCMAKE_ASM_COMPILER="$(CMAKE_HOST_C_COMPILER)" \
> > +   
> > -DCMAKE_ASM_COMPILER_ARG1="$(CMAKE_HOST_C_COMPILER_ARG1)" \
> > -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \
> > -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \
> > -DCMAKE_EXE_LINKER_FLAGS:STRING="$(HOST_LDFLAGS)" \
> > diff --git a/rules.mk b/rules.mk
> > index adb103d81f2f..34222a3a7199 100644
> > --- a/rules.mk
> > +++ b/rules.mk
> > @@ -292,6 +292,7 @@ HOSTCXX_NOCACHE:=$(HOSTCXX)
> >  export TARGET_CC_NOCACHE
> >  export TARGET_CXX_NOCACHE
> >  export HOSTCC_NOCACHE
> > +export HOSTCXX_NOCACHE
> >
> >  ifneq ($(CONFIG_CCACHE),)
> >TARGET_CC:= ccache_cc

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] hostapd: enable airtime policy for the -basic variants

2020-11-28 Thread Rui Salvaterra
Hi, Daniel,

On Fri, 27 Nov 2020 at 22:31, Daniel Golle  wrote:
>
> On Wed, Nov 25, 2020 at 11:03:48PM +, Rui Salvaterra wrote:
> > Airtime policy configuration is extremely useful in multiple BSS scenarios.
> > Since nowadays most people configure both private and guest networks (at
> > least), it makes sense to enable it by default, except for the most limited
> > of the variants.
> >
> > Size of the hostapd-basic-openssl binary (mipsel 24Kc -O2):
> > 543944 bytes (airtime policy disabled)
> > 548040 bytes (airtime policy enabled)
> >
> > Signed-off-by: Rui Salvaterra 
> Acked-by: Daniel Golle 
>
> Are there any new UCI options to be added to make use of this?

They were added recently:
https://git.openwrt.org/?p=openwrt%2Fopenwrt.git=search=HEAD=commit=airtime+policy

However, I've been playing with them and I still wasn't able to see a
change in station airtime weight, in either of the three modes. I've
only tested mt76 hardware yet, but I'll soon test ath9k and ath10k.

Thanks,
Rui

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH 0/2] ramips: add support for ELECOM 2x2 11ac devices with MT7621

2020-11-28 Thread INAGAKI Hiroshi
This is a continuation of the PR #3132 on GitHub.
After the commit 37615174f5b360bfbcf5f11813500599e3b8196d, the secondary phy on
MT7615D is registered automatically.

This patch series adds following two MT7621 devices sold by
ELECOM:

- WRC-1167GS2-B
- WRC-1167GST2

These models and WRC-*GST series already supported in OpenWrt are very
close, but there are several differences and created new dtsi for that
two models.

descriptions of notes in commits:

- there is no way to configure the correct MAC address for secondary phy on
  MT7615D

  The MAC address cannot be changed by using
  /sys/class/ieee80211/phy1/macaddress. I've found ext_mac_addr file on debugfs
  in mt76 driver repository for MT7615[1], but it's not generated on the device.

root@OpenWrt:/# ls -alh /sys/kernel/debug/ieee80211/phy0/mt76
drwxr-xr-x2 root root   0 Nov 28 01:54 .
drwxr-xr-x7 root root   0 Nov 28 01:54 ..
-r--r--r--1 root root   0 Nov 28 01:54 acq
-r1 root root   0 Nov 28 01:54 ampdu_stat
-rw---1 root root   0 Nov 28 01:54 dbdc
-r1 root root   0 Nov 28 01:54 dfs_hw_pattern
-r1 root root   0 Nov 28 01:54 eeprom
-rw---1 root root   0 Nov 28 01:54 fw_debug
-rw---1 root root   0 Nov 28 01:54 idle-timeout
-rw---1 root root   0 Nov 28 01:54 led_active_low
-rw---1 root root   0 Nov 28 01:54 led_pin
-r1 root root   0 Nov 28 01:54 otp
-rw---1 root root   0 Nov 28 01:54 pattern_len
-rw---1 root root   0 Nov 28 01:54 pulse_period
-rw---1 root root   0 Nov 28 01:54 pulse_power
-rw---1 root root   0 Nov 28 01:54 pulse_width
--w---1 root root   0 Nov 28 01:54 radar_trigger
-r--r--r--1 root root   0 Nov 28 01:54 radio
-r--r--r--1 root root   0 Nov 28 01:54 rate_txpower
-rw---1 root root   0 Nov 28 01:54 regidx
-rw---1 root root   0 Nov 28 01:54 regval
--w---1 root root   0 Nov 28 01:54 reset_test
-rw---1 root root   0 Nov 28 01:54 rf_regidx
-rw---1 root root   0 Nov 28 01:54 rf_regval
-rw---1 root root   0 Nov 28 01:54 rf_wfidx
-rw---1 root root   0 Nov 28 01:54 runtime-pm
-r--r--r--1 root root   0 Nov 28 01:54 rx-queues
-rw---1 root root   0 Nov 28 01:54 scs
-r--r--r--1 root root   0 Nov 28 01:54 temperature
-r--r--r--1 root root   0 Nov 28 01:54 xmit-queues

- Wi-Fi band on primary phy (2.4GHz) cannot be limitted by specifying
  ieee80211-freq-limit

  if specified, mt76 driver fails to register the secondary phy due to following
  error:

[   11.136105] mt7621-pci 1e14.pcie: bus=1 slot=0 irq=22
[   11.146925] pci :00:00.0: enabling device (0004 -> 0007)
[   11.153771] random: crng init done
[   11.158230] mt7615e :01:00.0: enabling device ( -> 0002)
[   11.164961] random: 7 urandom warning(s) missed due to ratelimiting
[   11.225191] mt7615e :01:00.0: HW/SW Version: 0x8a108a10, Build Time: 
20180518100604a
[   11.225191]
[   11.235313] PPP generic driver version 2.4.2
[   11.254500] NET: Registered protocol family 24
[   11.299683] kmodloader: done loading kernel modules from /etc/modules.d/*
[   11.548627] mt7615e :01:00.0: N9 Firmware Version: _reserved_, Build 
Time: 20200814163649
[   11.576412] mt7615e :01:00.0: CR4 Firmware Version: _reserved_, Build 
Time: 20190121161307
[   12.254653] [ cut here ]
[   12.264122] WARNING: CPU: 0 PID: 29 at 
backports-5.8-1/net/wireless/core.c:872 wiphy_register+0xd80/0xd88 [cfg80211]
[   12.285164] Modules linked in: xt_connlimit pppoe ppp_async nf_conncount 
iptable_nat xt_state xt_nat xt_helper xt_conntrack xt_connmark xt_connbytes 
xt_REDIRECT xt_MASQUERADE xt_FLOWOFFLOAD xt_CT pppox ppp_generic nf_nat 
nf_flow_table_hw nf_flow_table nf_conntrack_rtcache nf_conntrack mt7615e 
mt7615_common mt76 mac80211 ipt_REJECT cfg80211 xt_time xt_tcpudp xt_tcpmss 
xt_statistic xt_recent xt_multiport xt_mark xt_mac xt_limit xt_length xt_hl 
xt_ecn xt_dscp xt_comment xt_TCPMSS xt_LOG xt_HL xt_DSCP xt_CLASSIFY slhc 
nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 iptable_raw 
iptable_mangle iptable_filter ipt_ECN ip_tables crc_ccitt compat 
ledtrig_heartbeat xt_set ip_set_list_set ip_set_hash_netportnet 
ip_set_hash_netport ip_set_hash_netnet ip_set_hash_netiface ip_set_hash_net 
ip_set_hash_mac ip_set_hash_ipportnet ip_set_hash_ipportip ip_set_hash_ipport 
ip_set_hash_ipmark ip_set_hash_ip ip_set_bitmap_port ip_set_bitmap_ipmac 
ip_set_bitmap_ip ip_set nfnetlink nf_log_ipv6 nf_log_common
[   12.285443]  ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables