Files
wlan-ap/patches/0022-base-files-add-ucidef_set_wifi_country.patch
John Crispin 73d949cf3f 23.05: update patches
Signed-off-by: John Crispin <john@phrozen.org>
2023-09-28 14:50:26 +02:00

31 lines
882 B
Diff

From d8e5a9690a26149b66bad9e97aa25f3deb63e48a Mon Sep 17 00:00:00 2001
From: John Crispin <john@phrozen.org>
Date: Thu, 22 Sep 2022 15:12:20 +0200
Subject: [PATCH 22/43] 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