3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-16 17:09:24 +01:00

knownnetworks: add get_vendor_ies operation

This will provide the hotspot module with enough info for it to
build the required vendor IEs to be provided with (Re)Association.
This commit is contained in:
James Prestwood 2019-09-09 09:49:08 -07:00 committed by Denis Kenzior
parent 689fd7b92b
commit bff0740829
2 changed files with 16 additions and 0 deletions

View File

@ -212,6 +212,16 @@ const char *network_info_get_type(const struct network_info *info)
return info->ops->get_type(info); return info->ops->get_type(info);
} }
const struct iovec *network_info_get_extra_ies(const struct network_info *info,
struct scan_bss *bss,
size_t *num_elems)
{
if (!info->ops->get_extra_ies)
return NULL;
return info->ops->get_extra_ies(info, bss, num_elems);
}
bool network_info_match_hessid(const struct network_info *info, bool network_info_match_hessid(const struct network_info *info,
const uint8_t *hessid) const uint8_t *hessid)
{ {

View File

@ -38,6 +38,9 @@ struct network_info_ops {
const char *(*get_path)(const struct network_info *info); const char *(*get_path)(const struct network_info *info);
const char *(*get_name)(const struct network_info *info); const char *(*get_name)(const struct network_info *info);
const char *(*get_type)(const struct network_info *info); const char *(*get_type)(const struct network_info *info);
const struct iovec *(*get_extra_ies)(const struct network_info *info,
struct scan_bss *bss,
size_t *num_elems);
bool (*match_hessid)(const struct network_info *info, bool (*match_hessid)(const struct network_info *info,
const uint8_t *hessid); const uint8_t *hessid);
@ -95,6 +98,9 @@ int network_info_touch(struct network_info *info);
const char *network_info_get_path(const struct network_info *info); const char *network_info_get_path(const struct network_info *info);
const char *network_info_get_name(const struct network_info *info); const char *network_info_get_name(const struct network_info *info);
const char *network_info_get_type(const struct network_info *info); const char *network_info_get_type(const struct network_info *info);
const struct iovec *network_info_get_extra_ies(const struct network_info *info,
struct scan_bss *bss,
size_t *num_elems);
bool network_info_match_hessid(const struct network_info *info, bool network_info_match_hessid(const struct network_info *info,
const uint8_t *hessid); const uint8_t *hessid);