commit f72d9c299911b36750d03e5e3854617e1052b225
parent 1bc59390fa43400d9c4210c5b4060c4056df9566
Author: Denis Kenzior <denkenz@gmail.com>
Date: Mon, 1 Jul 2019 18:28:07 -0500
wiphy: Add wiphy_get_name
Diffstat:
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git 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
@@ -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,