commit 778dacd2622a6c0e5e0d26c1dc964170062d921c parent a8f30981159fe0ef79522df3a8066a957b7596f8 Author: Denis Kenzior <denkenz@gmail.com> Date: Wed, 2 Mar 2022 13:57:00 -0600 wiphy: Use an inline function in favor of a macro Diffstat:
| M | src/wiphy.h | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/wiphy.h b/src/wiphy.h @@ -72,7 +72,10 @@ 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) +static inline struct wiphy *wiphy_find_by_wdev(uint64_t w) +{ + return wiphy_find(w >> 32); +} bool wiphy_is_blacklisted(const struct wiphy *wiphy);