From f72d9c299911b36750d03e5e3854617e1052b225 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 1 Jul 2019 18:28:07 -0500 Subject: [PATCH] wiphy: Add wiphy_get_name --- src/wiphy.c | 5 +++++ src/wiphy.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/wiphy.c b/src/wiphy.c index 7d30a337..d14966a5 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -343,6 +343,11 @@ const char *wiphy_get_driver(struct wiphy *wiphy) return wiphy->driver_str; } +const char *wiphy_get_name(struct wiphy *wiphy) +{ + return wiphy->name; +} + const uint8_t *wiphy_get_permanent_address(struct wiphy *wiphy) { return wiphy->permanent_addr; diff --git a/src/wiphy.h b/src/wiphy.h index e1eb54c1..9ceb0463 100644 --- a/src/wiphy.h +++ b/src/wiphy.h @@ -69,6 +69,7 @@ bool wiphy_supports_iftype(struct wiphy *wiphy, uint32_t iftype); bool wiphy_supports_adhoc_rsn(struct wiphy *wiphy); bool wiphy_can_offchannel_tx(struct wiphy *wiphy); const char *wiphy_get_driver(struct wiphy *wiphy); +const char *wiphy_get_name(struct wiphy *wiphy); const uint8_t *wiphy_get_permanent_address(struct wiphy *wiphy); uint32_t wiphy_state_watch_add(struct wiphy *wiphy,