openwrt / openwrt/mt76

5Ghz Wi-Fi doesn't work if wi-fi country code 00-World is used on TP-Link Archer C6(EU) Ver3.20

Open
#700 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
888
Forks
436
PR merge metrics
No merged PRs in 30d

Description

Basic working configuration:
dmesg.txt
wireless.txt

Steps to reproduce:

  • Set Country Code: 00 - World

Result:

  • 5GHz Wi-Fi stops working:
Mon Sep 12 08:08:17 2022 daemon.err hostapd: Line 6: Invalid country_code '00'
Mon Sep 12 08:08:17 2022 daemon.err hostapd: Cannot enable IEEE 802.11d without setting the country_code
Mon Sep 12 08:08:17 2022 daemon.err hostapd: 2 errors found in configuration file '/var/run/hostapd-phy1.conf'
Mon Sep 12 08:08:17 2022 daemon.err hostapd: Failed to set up interface with /var/run/hostapd-phy1.conf
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477): Command failed: ubus call hostapd config_add {"iface":"wlan1", "config":"/var/run/hostapd-phy1.conf"} (Invalid argument)
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477): Usage: ubus [<options>] <command> [arguments...]
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477): Options:
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):  -s <socket>:             Set the unix domain socket to connect to
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):  -t <timeout>:            Set the timeout (in seconds) for a command to complete
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):  -S:                      Use simplified output (for scripts)
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):  -v:                      More verbose output
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):  -m <type>:               (for monitor): include a specific message type
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):                   (can be used more than once)
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):  -M <r|t>         (for monitor): only capture received or transmitted traffic
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477): Commands:
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):  - list [<path>]                  List objects
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):  - call <path> <method> [<message>]       Call an object method
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):  - subscribe <path> [<path>...]   Subscribe to object(s) notifications
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):  - listen [<path>...]                     Listen for events
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):  - send <type> [<message>]                Send an event
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):  - wait_for <object> [<object>...]        Wait for multiple objects to appear on ubus
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):  - monitor                                Monitor ubus traffic
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477):
Mon Sep 12 08:08:17 2022 daemon.notice netifd: radio1 (9477): Device setup failed: HOSTAPD_START_FAILED

logread.txt

System
Hostname OpenWrt
Model TP-Link Archer C6 v3
Architecture MediaTek MT7621 ver:1 eco:3
Target Platform ramips/mt7621
Firmware Version OpenWrt 22.03.0 r19685-512e76967f / LuCI openwrt-22.03 branch git-22.245.77528-487e58a
Kernel Version 5.10.138

Hardware: TP-Link Archer C6(EU) Ver3.20

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review dmesg.txt, wireless.txt, and logread.txt, starting with the hostapd error that rejects country_code '00'. Trace how the 00-World setting reaches the 5 GHz configuration and verify the result on the TP-Link Archer C6 v3.20. Done means 5 GHz starts successfully with that country code and hostapd no longer reports HOSTAPD_START_FAILED.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.