Set sae as default encryption for new SetSSID additions

This commit is contained in:
Vivek Kumar Dutta 2024-02-29 14:27:43 +00:00
parent aa212e1aeb
commit 3af77d5850

View file

@ -3375,6 +3375,8 @@ static int operate_WiFiDataElementsNetwork_SetSSID(char *refparam, struct dmctx
dmuci_rename_section_by_section(s, sec_name);
dmuci_set_value_by_section(s, "ssid", ssid);
dmuci_set_value_by_section(s, "key", key);
// TR181-2.16 does not have option to configure encryption mode, so use the sae as default encryption
dmuci_set_value_by_section(s, "encryption", "sae");
dmuci_set_value_by_section(s, "type", "fronthaul");
dmuci_set_value_by_section(s, "band", (*pch == '2') ? "2" : pch);
dmuci_set_value_by_section(s, "enabled", "1");