Files
wlan-ap/patches/0017-base-files-add-ucidef_set_wifi_country.patch
John Crispin d329e3a9ca patches/: re-order and fold patches
Signed-off-by: John Crispin <john@phrozen.org>
2024-04-27 16:15:25 +02:00

31 lines
882 B
Diff

From 7346bf9308f3016139a2295bad3784941c1efa68 Mon Sep 17 00:00:00 2001
From: John Crispin <john@phrozen.org>
Date: Thu, 22 Sep 2022 15:12:20 +0200
Subject: [PATCH 17/68] base-files: add ucidef_set_wifi_country
Signed-off-by: John Crispin <john@phrozen.org>
---
package/base-files/files/lib/functions/uci-defaults.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh
index c831469a24..133181ed18 100644
--- a/package/base-files/files/lib/functions/uci-defaults.sh
+++ b/package/base-files/files/lib/functions/uci-defaults.sh
@@ -644,6 +644,12 @@ ucidef_set_wifi_scanning() {
json_select ..
}
+ucidef_set_wifi_country() {
+ json_select_object wifi
+ json_add_string country "$1"
+ json_select ..
+}
+
ucidef_set_ntpserver() {
local server
--
2.34.1