AcThPaU / openwrt

This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins or for reporting issues. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git. All issues should be reported at: https://bugs.openwrt.org
Other
0 stars 0 forks source link

WRT3200ACM Radio Issues #1

Open AcThPaU opened 3 years ago

AcThPaU commented 3 years ago

--- 00-world does not work, even though it already patched by gvalkov.

httpstorm commented 3 years ago

When using branch gvalkov all patches are already applied. You are ready to build. If you like to preserve some of the patches, export them, then switch to master, create your own branch and integrate the patches.

AcThPaU commented 3 years ago

@httpstorm

v19.07.7 kernel hash reproduced with patch

git clone https://github.com/httpstorm/openwrt.git cd openwrt git checkout gvalkov git log git format-patch commit-hash

git clone https://github.com/openwrt/openwrt.git cd openwrt git checkout v19.07.7 git am --signoff < patch_name.patch ... ./scripts/feeds update -a ./scripts/feeds install -a wget https://downloads.openwrt.org/releases/19.07.7/targets/mvebu/cortexa9/config.buildinfo -O .config make defconfig Don't run this : (make menuconfig) make -j $(nproc) download world

AcThPaU commented 2 years ago

@httpstorm

V21.02.1 failed to build with patches(official source)

ERROR: package/firmware/wireless-regdb failed to build.

db.txt.rej

--- db.txt
+++ db.txt
@@ -455,15 +454,15 @@ country CZ: DFS-ETSI
 # https://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Frequenzen/Allgemeinzuteilungen/MobilfunkDectWlanCBFunk/vfg552021WLAN6GHz.pdf
 country DE: DFS-ETSI
    (2400 - 2483.5 @ 40), (100 mW)
-   (5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW, wmmrule=ETSI
-   (5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS, AUTO-BW, wmmrule=ETSI
-   (5470 - 5725 @ 160), (500 mW), DFS, wmmrule=ETSI
-   # short range devices (ETSI EN 300 440-1)
-   (5725 - 5875 @ 80), (25 mW)
+   # Channel 32 - 68
+   (5150 - 5350 @ 160), (500 mW), AUTO-BW, wmmrule=ETSI
+   # Channel  96 - 173
+   # Channel 100 - 173
+   (5470 - 5875 @ 160), (500 mW), wmmrule=ETSI
    # WiFi 6E
-   (5945 - 6425 @ 160), (200 mW), NO-OUTDOOR, AUTO-BW, wmmrule=ETSI
+   (5945 - 6425 @ 160), (500 mW), AUTO-BW, wmmrule=ETSI
    # 60 GHz band channels 1-4 (ETSI EN 302 567)
-   (57000 - 66000 @ 2160), (40)
+   (57000 - 71000 @ 2160), (40)

 # DK as part of EU/CEPT accepted decisions 2005/513/EC (5GHz RLAN, EN 301 893)
 # and 2006/771/EC (amended by 2008/432/EC, Short-Range Devices, EN 300 440)
@@ -1589,16 +1585,17 @@ country UG: DFS-FCC
 # frequency band, 2,483.5–2,500 MHz which is subject to strict emission limits
 # set out in 47 CFR § 15.205. TODO: reenable and specify a safe TX power here.
 country US: DFS-FCC
-   (2400 - 2472 @ 40), (30)
+   (2400 - 2494 @ 40), (30)
    # 5.15 ~ 5.25 GHz: 30 dBm for master mode, 23 dBm for clients
-   (5150 - 5250 @ 80), (23), AUTO-BW
-   (5250 - 5350 @ 80), (23), DFS, AUTO-BW
+   # Channel 32 - 68
+   (5150 - 5350 @ 160), (30), AUTO-BW
+   # Channel  96 - 173
+   # Channel 100 - 173
    # This range ends at 5725 MHz, but channel 144 extends to 5730 MHz.
    # Since 5725 ~ 5730 MHz belongs to the next range which has looser
    # requirements, we can extend the range by 5 MHz to make the kernel
    # happy and be able to use channel 144.
-   (5470 - 5730 @ 160), (23), DFS
-   (5730 - 5850 @ 80), (30), AUTO-BW
+   (5470 - 5875 @ 160), (30), AUTO-BW
    # https://www.federalregister.gov/documents/2021/05/03/2021-08802/use-of-the-5850-5925-ghz-band
    # max. 33 dBm AP @ 20MHz, 36 dBm AP @ 40Mhz+, 6 dB less for clients
    (5850 - 5895 @ 40), (27), NO-OUTDOOR, AUTO-BW, NO-IR

Patch content:

From 67e2506ffa21b8d76b67cee61a485b0708af831d Mon Sep 17 00:00:00 2001
From: Georgi Valkov <gvalkov@abv.bg>
Date: Fri, 29 Oct 2021 05:30:30 +0200
Subject: [PATCH 1/5] 600-g-wireless-regdb.DFS-free

DFS free wireless-regdb

Signed-off-by: Georgi Valkov <gvalkov@abv.bg>
---
 .../600-g-wireless-regdb.DFS-free.patch       | 139 ++++++++++++++++++
 1 file changed, 139 insertions(+)
 create mode 100644 package/firmware/wireless-regdb/patches/600-g-wireless-regdb.DFS-free.patch

diff --git a/package/firmware/wireless-regdb/patches/600-g-wireless-regdb.DFS-free.patch b/package/firmware/wireless-regdb/patches/600-g-wireless-regdb.DFS-free.patch
new file mode 100644
index 0000000000..b1fd8ea0ec
--- /dev/null
+++ b/package/firmware/wireless-regdb/patches/600-g-wireless-regdb.DFS-free.patch
@@ -0,0 +1,139 @@
+--- a/db.txt
++++ b/db.txt
+@@ -10,21 +10,20 @@ wmmrule ETSI:
+
+ # This is the world regulatory domain
+ country 00:
+-  (2402 - 2472 @ 40), (20)
++  (2402 - 2472 @ 40), (24)
+   # Channel 12 - 13.
+-  (2457 - 2482 @ 20), (20), NO-IR, AUTO-BW
++  (2457 - 2482 @ 20), (24), NO-IR, AUTO-BW
+   # Channel 14. Only JP enables this and for 802.11b only
+-  (2474 - 2494 @ 20), (20), NO-IR, NO-OFDM
++  (2474 - 2494 @ 20), (24), NO-IR, NO-OFDM
+   # Channel 36 - 48
+-  (5170 - 5250 @ 80), (20), AUTO-BW
+   # Channel 52 - 64
+-  (5250 - 5330 @ 80), (20), NO-IR, DFS, AUTO-BW
++  (5150 - 5330 @ 160), (24), AUTO-BW
+   # Channel 100 - 144
+-  (5490 - 5730 @ 160), (20), NO-IR, DFS
++  (5490 - 5730 @ 160), (24), NO-IR
+   # Channel 149 - 165
+-  (5735 - 5835 @ 80), (20), NO-IR
++  (5735 - 5835 @ 80), (24), NO-IR
+   # IEEE 802.11ad (60GHz), channels 1..3
+-  (57240 - 63720 @ 2160), (0)
++  (57240 - 63720 @ 2160), (40)
+
+ # AD as part of CEPT accepted decisions 2005/513/EC (5GHz RLAN, EN 301 893)
+ # and 2006/771/EC (amended by 2008/432/EC, Short-Range Devices, EN 300 440)
+@@ -221,16 +220,16 @@ country BG: DFS-ETSI
+   (2400 - 2483.5 @ 40), (100 mW)
+   # 5 GHz Radio Local Area Networks (RLANs), ref:
+   # II.H01 of the List, BDS EN 301 893
+-  (5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW, wmmrule=ETSI
+-  (5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS, AUTO-BW, wmmrule=ETSI
++  # Channel 32 - 68
++  (5150 - 5350 @ 160), (500 mW), AUTO-BW, wmmrule=ETSI
+   # II.H01 of the List, I.54 from the List, BDS EN 301 893
+-  (5470 - 5725 @ 160), (500 mW), DFS, wmmrule=ETSI
+-  # short range devices (ETSI EN 300 440-1)
++  # Channel  96 - 173
++  # Channel 100 - 173
++  (5470 - 5875 @ 160), (500 mW), wmmrule=ETSI
+   # I.43 of the List, BDS EN 300 440-2, BDS EN 300 440-1
+-  (5725 - 5875 @ 80), (25 mW)
+   # 60 GHz band channels 1-4 (ETSI EN 302 567)
+   # II.H03 of the List, BDS EN 302 567-2
+-  (57000 - 66000 @ 2160), (40)
++  (57000 - 71000 @ 2160), (40)
+
+ country BH: DFS-JP
+   (2402 - 2482 @ 40), (20)
+@@ -456,15 +455,15 @@ country CZ: DFS-ETSI
+ # https://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Frequenzen/Allgemeinzuteilungen/MobilfunkDectWlanCBFunk/vfg552021WLAN6GHz.pdf
+ country DE: DFS-ETSI
+   (2400 - 2483.5 @ 40), (100 mW)
+-  (5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW, wmmrule=ETSI
+-  (5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS, AUTO-BW, wmmrule=ETSI
+-  (5470 - 5725 @ 160), (500 mW), DFS, wmmrule=ETSI
+-  # short range devices (ETSI EN 300 440-1)
+-  (5725 - 5875 @ 80), (25 mW)
++  # Channel 32 - 68
++  (5150 - 5350 @ 160), (500 mW), AUTO-BW, wmmrule=ETSI
++  # Channel  96 - 173
++  # Channel 100 - 173
++  (5470 - 5875 @ 160), (500 mW), wmmrule=ETSI
+   # WiFi 6E
+-  (5945 - 6425 @ 160), (200 mW), NO-OUTDOOR, AUTO-BW, wmmrule=ETSI
++  (5945 - 6425 @ 160), (500 mW), AUTO-BW, wmmrule=ETSI
+   # 60 GHz band channels 1-4 (ETSI EN 302 567)
+-  (57000 - 66000 @ 2160), (40)
++  (57000 - 71000 @ 2160), (40)
+
+ # DK as part of EU/CEPT accepted decisions 2005/513/EC (5GHz RLAN, EN 301 893)
+ # and 2006/771/EC (amended by 2008/432/EC, Short-Range Devices, EN 300 440)
+@@ -521,14 +520,11 @@ country EC: DFS-FCC
+ # EE: https://www.ttja.ee/et/ettevottele-organisatsioonile/sideteenused/raadioseadmed/wifi-seade
+ # EE: https://www.itu.int/ITU-D/study_groups/SGP_1998-2002/JGRES09/pdf/estonia.pdf
+ country EE: DFS-ETSI
+-  (2400 - 2483.5 @ 40), (100 mW)
+-  (5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW, wmmrule=ETSI
+-  (5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS, AUTO-BW, wmmrule=ETSI
+-  (5470 - 5725 @ 160), (500 mW), DFS, wmmrule=ETSI
+-  # short range devices (ETSI EN 300 440-1)
+-  (5725 - 5875 @ 80), (25 mW)
++  (2400 - 2494 @ 40), (200 mW)
++  (5150 - 5350 @ 160), (500 mW), AUTO-BW, wmmrule=ETSI
++  (5470 - 5875 @ 160), (500 mW), wmmrule=ETSI
+   # 60 GHz band channels 1-4 (ETSI EN 302 567)
+-  (57000 - 66000 @ 2160), (40)
++  (57000 - 71000 @ 2160), (40)
+
+ # https://www.tra.gov.eg/en/industry/importing-of-equipment/Pages/Regulations-for-use-of-Wireless-Networks-Devices.aspx
+ country EG: DFS-ETSI
+@@ -587,13 +583,13 @@ country FM: DFS-FCC
+ # Harmonized CEPT countries (July 2019): https://www.ecodocdb.dk/download/25c41779-cd6e/Rec7003e.pdf
+ country FR: DFS-ETSI
+   (2400 - 2483.5 @ 40), (100 mW)
+-  (5150 - 5250 @ 80), (200 mW), NO-OUTDOOR, AUTO-BW, wmmrule=ETSI
+-  (5250 - 5350 @ 80), (100 mW), NO-OUTDOOR, DFS, AUTO-BW, wmmrule=ETSI
+-  (5470 - 5725 @ 160), (500 mW), DFS, wmmrule=ETSI
+-  # short range devices (ETSI EN 300 440-1)
+-  (5725 - 5875 @ 80), (25 mW)
++  # Channel 32 - 68
++  (5150 - 5350 @ 160), (500 mW), AUTO-BW, wmmrule=ETSI
++  # Channel  96 - 173
++  # Channel 100 - 173
++  (5470 - 5875 @ 160), (500 mW), wmmrule=ETSI
+   # 60 GHz band channels 1-4 (ETSI EN 302 567)
+-  (57000 - 66000 @ 2160), (40)
++  (57000 - 71000 @ 2160), (40)
+
+ # GB as part of EU/CEPT accepted decisions 2005/513/EC (5GHz RLAN, EN 301 893)
+ # and 2006/771/EC (amended by 2008/432/EC, Short-Range Devices, EN 300 440)
+@@ -1593,16 +1589,17 @@ country UG: DFS-FCC
+ # frequency band, 2,483.5–2,500 MHz which is subject to strict emission limits
+ # set out in 47 CFR § 15.205. TODO: reenable and specify a safe TX power here.
+ country US: DFS-FCC
+-  (2400 - 2472 @ 40), (30)
++  (2400 - 2494 @ 40), (30)
+   # 5.15 ~ 5.25 GHz: 30 dBm for master mode, 23 dBm for clients
+-  (5150 - 5250 @ 80), (23), AUTO-BW
+-  (5250 - 5350 @ 80), (23), DFS, AUTO-BW
++  # Channel 32 - 68
++  (5150 - 5350 @ 160), (30), AUTO-BW
++  # Channel  96 - 173
++  # Channel 100 - 173
+   # This range ends at 5725 MHz, but channel 144 extends to 5730 MHz.
+   # Since 5725 ~ 5730 MHz belongs to the next range which has looser
+   # requirements, we can extend the range by 5 MHz to make the kernel
+   # happy and be able to use channel 144.
+-  (5470 - 5730 @ 160), (23), DFS
+-  (5730 - 5850 @ 80), (30), AUTO-BW
++  (5470 - 5875 @ 160), (30), AUTO-BW
+   # https://www.federalregister.gov/documents/2021/05/03/2021-08802/use-of-the-5850-5925-ghz-band
+   # max. 33 dBm AP @ 20MHz, 36 dBm AP @ 40Mhz+, 6 dB less for clients
+   (5850 - 5895 @ 40), (27), NO-OUTDOOR, AUTO-BW, NO-IR
-- 
2.25.1
httpstorm commented 2 years ago

@AcThPaU Try an older snapshot of the regdb patch which is based on the version you are building, e.g. https://github.com/httpstorm/openwrt/tree/2021-09-02