From aa0404504cff8bcdac40d8e9b3ec708d2079d705 Mon Sep 17 00:00:00 2001
From: John Crispin <john@phrozen.org>
Date: Thu, 22 Sep 2022 15:12:20 +0200
Subject: [PATCH] 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 ff3433a0a2..3bc8e6bb1c 100644
--- a/package/base-files/files/lib/functions/uci-defaults.sh
+++ b/package/base-files/files/lib/functions/uci-defaults.sh
@@ -627,6 +627,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.25.1

