3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

network: add getter/setter for network_info

This commit is contained in:
James Prestwood 2019-08-19 11:11:54 -07:00 committed by Denis Kenzior
parent 894548dfd4
commit cb149fe380
2 changed files with 15 additions and 0 deletions

View File

@ -473,6 +473,19 @@ const uint8_t *network_get_roaming_consortium(const struct network *network)
return network->rc_ie;
}
const struct network_info *network_get_info(const struct network *network)
{
return network->info;
}
void network_set_info(struct network *network, struct network_info *info)
{
network->info = info;
l_dbus_property_changed(dbus_get_bus(), network_get_path(network),
IWD_NETWORK_INTERFACE, "KnownNetwork");
}
static inline bool __bss_is_sae(const struct scan_bss *bss,
const struct ie_rsn_info *rsn)
{

View File

@ -53,6 +53,8 @@ void network_set_nai_realms(struct network *network, char **realms);
const uint8_t *network_get_hessid(const struct network *network);
char **network_get_nai_realms(const struct network *network);
const uint8_t *network_get_roaming_consortium(const struct network *network);
const struct network_info *network_get_info(const struct network *network);
void network_set_info(struct network *network, struct network_info *info);
int network_autoconnect(struct network *network, struct scan_bss *bss);
void network_connect_failed(struct network *network);