mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
hotspot: allow HESSID without NAIRealmNames
The original idea was to allow the provisioning file to include HESSID without the NAIRealmNames. Configuring this way would allow for ANQP to be skipped completely, assuming the AP advertises its HESSID. The way the code was written still required NAIRealmNames to be provided in the provisioning file.
This commit is contained in:
parent
7ed51a2d95
commit
e8d91f15a1
@ -70,7 +70,7 @@ static struct hs20_config *hs20_config_new(struct l_settings *settings,
|
||||
{
|
||||
struct hs20_config *config;
|
||||
char *str;
|
||||
char **nai_realms;
|
||||
char **nai_realms = NULL;
|
||||
|
||||
config = l_new(struct hs20_config, 1);
|
||||
|
||||
@ -79,9 +79,10 @@ static struct hs20_config *hs20_config_new(struct l_settings *settings,
|
||||
if (str) {
|
||||
util_string_to_address(str, config->hessid);
|
||||
l_free(str);
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* NAI realms are required */
|
||||
/* NAI realms are required if HESSID is not included */
|
||||
nai_realms = l_settings_get_string_list(settings, "Hotspot",
|
||||
"NAIRealmNames", ',');
|
||||
if (!nai_realms) {
|
||||
@ -89,6 +90,7 @@ static struct hs20_config *hs20_config_new(struct l_settings *settings,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
done:
|
||||
config->nai_realms = nai_realms;
|
||||
config->filename = l_strdup(filename);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user