From 3c07d245d43f55a8f20f8e275497729fd836bd7a Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 6 Nov 2024 21:35:23 -0800 Subject: [PATCH] networks: wifi: In new connection page set form defaults properly - When a link on 'Nearby Wi-Fi Networks' page is clicked, a new Wi-Fi connection page is shown. In this form, the DNS-over-TLS and IPv6 method radio buttons are not pre-selected with default value. Fix this by setting default values for them. Tests: - On a system with Wi-Fi device, click on 'Nearby Wi-Fi Networks', click on a Wi-Fi network and go to new Wi-Fi connection creation page. Notice that values for DNS-over-TLS and IPv6 connection method are filled in. Simply clicking 'Submit' creates the connection. Signed-off-by: Sunil Mohan Adapa Reviewed-by: Veiko Aasa --- plinth/modules/networks/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plinth/modules/networks/views.py b/plinth/modules/networks/views.py index 9d92442d5..ba327fd42 100644 --- a/plinth/modules/networks/views.py +++ b/plinth/modules/networks/views.py @@ -491,7 +491,9 @@ def add_wifi(request, ssid=None, interface_name=None): 'mode': 'infrastructure', 'band': 'auto', 'auth_mode': 'wpa', - 'ipv4_method': 'auto' + 'ipv4_method': 'auto', + 'ipv6_method': 'auto', + 'dns_over_tls': 'default', } if request.method == 'POST':