mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
network: add getter/setter for network_info
This commit is contained in:
parent
894548dfd4
commit
cb149fe380
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user