From 70824d7b5a317479b0fde2486c234763dc2a558c Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Thu, 2 Jul 2020 10:35:27 -0700 Subject: [PATCH] wiphy: add convenience API wiphy_find_by_wdev --- src/wiphy.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wiphy.h b/src/wiphy.h index ed435517..689f868b 100644 --- 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);