mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
wifi: cfg80211: add cfg80211_get_iftype_ext_capa()
Add a helper function cfg80211_get_iftype_ext_capa() to look up interface type-specific (extended) capabilities. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -2490,3 +2490,17 @@ int cfg80211_remove_virtual_intf(struct cfg80211_registered_device *rdev,
|
||||
|
||||
return rdev_del_virtual_intf(rdev, wdev);
|
||||
}
|
||||
|
||||
const struct wiphy_iftype_ext_capab *
|
||||
cfg80211_get_iftype_ext_capa(struct wiphy *wiphy, enum nl80211_iftype type)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < wiphy->num_iftype_ext_capab; i++) {
|
||||
if (wiphy->iftype_ext_capab[i].iftype == type)
|
||||
return &wiphy->iftype_ext_capab[i];
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
EXPORT_SYMBOL(cfg80211_get_iftype_ext_capa);
|
||||
|
||||
Reference in New Issue
Block a user