3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-29 13:59:24 +01:00

wiphy: add convenience API wiphy_find_by_wdev

This commit is contained in:
James Prestwood 2020-07-02 10:35:27 -07:00 committed by Denis Kenzior
parent a1b41f786e
commit 70824d7b5a

View File

@ -44,6 +44,8 @@ enum ie_rsn_akm_suite wiphy_select_akm(struct wiphy *wiphy,
bool fils_capable_hint); bool fils_capable_hint);
struct wiphy *wiphy_find(int wiphy_id); 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); bool wiphy_is_blacklisted(const struct wiphy *wiphy);
struct wiphy *wiphy_create(uint32_t wiphy_id, const char *name); struct wiphy *wiphy_create(uint32_t wiphy_id, const char *name);