mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
hotspot: add API to get a matching roaming consortium
This API will attempt to find a matching roaming consortium OI if present in the config file. A single matching OI is returned or NULL if one was not found.
This commit is contained in:
parent
27d670f432
commit
79a9fdf123
@ -271,6 +271,24 @@ try_roaming_consortium:
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const uint8_t *hs20_get_roaming_consortium(struct network *network,
|
||||||
|
size_t *len)
|
||||||
|
{
|
||||||
|
struct hs20_config *config;
|
||||||
|
const uint8_t *rc_ie = network_get_roaming_consortium(network);
|
||||||
|
|
||||||
|
if (!rc_ie)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
|
config = l_queue_find(hs20_settings, match_rc, rc_ie);
|
||||||
|
if (config) {
|
||||||
|
*len = config->rc_len;
|
||||||
|
return config->rc;
|
||||||
|
}
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
static int hotspot_init(void)
|
static int hotspot_init(void)
|
||||||
{
|
{
|
||||||
DIR *dir;
|
DIR *dir;
|
||||||
|
@ -23,3 +23,6 @@
|
|||||||
struct network;
|
struct network;
|
||||||
|
|
||||||
const char *hs20_find_settings_file(struct network *network);
|
const char *hs20_find_settings_file(struct network *network);
|
||||||
|
|
||||||
|
const uint8_t *hs20_get_roaming_consortium(struct network *network,
|
||||||
|
size_t *len);
|
||||||
|
Loading…
Reference in New Issue
Block a user