wiphy: add getter for 'supports_cmds_auth_assoc'

This commit is contained in:
James Prestwood 2021-03-22 09:01:51 -07:00 committed by Denis Kenzior
parent e7c7e7de41
commit af3d0d21a0
2 changed files with 6 additions and 0 deletions

View File

@ -404,6 +404,11 @@ bool wiphy_can_connect(struct wiphy *wiphy, struct scan_bss *bss)
return true;
}
bool wiphy_supports_cmds_auth_assoc(struct wiphy *wiphy)
{
return wiphy->support_cmds_auth_assoc;
}
bool wiphy_has_feature(struct wiphy *wiphy, uint32_t feature)
{
return wiphy->feature_flags & feature;

View File

@ -79,6 +79,7 @@ uint32_t wiphy_get_supported_bands(struct wiphy *wiphy);
const struct scan_freq_set *wiphy_get_supported_freqs(
const struct wiphy *wiphy);
bool wiphy_can_connect(struct wiphy *wiphy, struct scan_bss *bss);
bool wiphy_supports_cmds_auth_assoc(struct wiphy *wiphy);
bool wiphy_can_randomize_mac_addr(struct wiphy *wiphy);
bool wiphy_rrm_capable(struct wiphy *wiphy);
bool wiphy_has_feature(struct wiphy *wiphy, uint32_t feature);