commit 70824d7b5a317479b0fde2486c234763dc2a558c
parent a1b41f786e9ce5eb936093c7f5082d53bf89eaac
Author: James Prestwood <prestwoj@gmail.com>
Date: Thu, 2 Jul 2020 10:35:27 -0700
wiphy: add convenience API wiphy_find_by_wdev
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/wiphy.h b/src/wiphy.h
@@ -44,6 +44,8 @@ enum ie_rsn_akm_suite wiphy_select_akm(struct wiphy *wiphy,
bool fils_capable_hint);
struct wiphy *wiphy_find(int wiphy_id);
+#define wiphy_find_by_wdev(w) wiphy_find(w >> 32)
+
bool wiphy_is_blacklisted(const struct wiphy *wiphy);
struct wiphy *wiphy_create(uint32_t wiphy_id, const char *name);