Hotspot: disable complex settings

This commit is contained in:
Thomas Farstrike
2026-03-17 22:03:31 +01:00
parent 7ac6502e62
commit 3c1d151b91
@@ -49,6 +49,21 @@ class Hotspot(SettingsActivity):
"key": "password",
"placeholder": "Leave empty for open network",
},
{
"title": "Auth Mode",
"key": "authmode",
"ui": "dropdown",
"ui_options": [
("Auto", None),
("Open", "open"),
("WPA", "wpa"),
("WPA2", "wpa2"),
("WPA/WPA2", "wpa_wpa2"),
],
"changed_callback": self.toggle_hotspot,
},
'''
# These settings are too much:
{
"title": "Channel",
"key": "channel",
@@ -66,19 +81,6 @@ class Hotspot(SettingsActivity):
"key": "max_clients",
"placeholder": "Max connections, e.g. 4",
},
{
"title": "Auth Mode",
"key": "authmode",
"ui": "dropdown",
"ui_options": [
("Auto", None),
("Open", "open"),
("WPA", "wpa"),
("WPA2", "wpa2"),
("WPA/WPA2", "wpa_wpa2"),
],
"changed_callback": self.toggle_hotspot,
},
{
"title": "IP Address",
"key": "ip",
@@ -99,6 +101,7 @@ class Hotspot(SettingsActivity):
"key": "dns",
"placeholder": "DNS, e.g. 8.8.8.8",
},
'''
],
)
return intent