From 3dba205de1a4ee2f2f6adbf82cdf55371cd0e76b Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 12 Sep 2019 09:53:33 -0700 Subject: [PATCH] hotspot: implement get_file_path op --- src/hotspot.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/hotspot.c b/src/hotspot.c index d6a51c81..20ebb2fd 100644 --- a/src/hotspot.c +++ b/src/hotspot.c @@ -288,6 +288,13 @@ static const struct iovec *hotspot_network_get_ies( return iov; } +static char *hotspot_network_get_file_path(const struct network_info *info) +{ + struct hs20_config *config = l_container_of(info, struct hs20_config, + super); + return l_strdup(config->filename); +} + static struct network_info_ops hotspot_ops = { .open = hotspot_network_open, .touch = hotspot_network_touch, @@ -298,6 +305,7 @@ static struct network_info_ops hotspot_ops = { .get_name = hotspot_network_get_name, .get_type = hotspot_network_get_type, .get_extra_ies = hotspot_network_get_ies, + .get_file_path = hotspot_network_get_file_path, .match_hessid = hotspot_match_hessid, .match_roaming_consortium = hotspot_match_roaming_consortium,