3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-18 09:12:43 +01:00

wiphy: make "wiphy" const in wiphy_has_ext_feature

This commit is contained in:
James Prestwood 2024-11-25 07:06:20 -08:00 committed by Denis Kenzior
parent f3ba82b0e1
commit c6932efa30
2 changed files with 2 additions and 2 deletions

View File

@ -643,7 +643,7 @@ bool wiphy_rrm_capable(struct wiphy *wiphy)
return false; return false;
} }
bool wiphy_has_ext_feature(struct wiphy *wiphy, uint32_t feature) bool wiphy_has_ext_feature(const struct wiphy *wiphy, uint32_t feature)
{ {
return feature < sizeof(wiphy->ext_features) * 8 && return feature < sizeof(wiphy->ext_features) * 8 &&
test_bit(wiphy->ext_features, feature); test_bit(wiphy->ext_features, feature);

View File

@ -119,7 +119,7 @@ bool wiphy_can_randomize_mac_addr(struct wiphy *wiphy);
bool wiphy_rrm_capable(struct wiphy *wiphy); bool wiphy_rrm_capable(struct wiphy *wiphy);
bool wiphy_supports_ext_key_id(struct wiphy *wiphy); bool wiphy_supports_ext_key_id(struct wiphy *wiphy);
bool wiphy_has_feature(struct wiphy *wiphy, uint32_t feature); bool wiphy_has_feature(struct wiphy *wiphy, uint32_t feature);
bool wiphy_has_ext_feature(struct wiphy *wiphy, uint32_t feature); bool wiphy_has_ext_feature(const struct wiphy *wiphy, uint32_t feature);
uint8_t wiphy_get_max_num_ssids_per_scan(struct wiphy *wiphy); uint8_t wiphy_get_max_num_ssids_per_scan(struct wiphy *wiphy);
uint16_t wiphy_get_max_scan_ie_len(struct wiphy *wiphy); uint16_t wiphy_get_max_scan_ie_len(struct wiphy *wiphy);
uint32_t wiphy_get_max_roc_duration(struct wiphy *wiphy); uint32_t wiphy_get_max_roc_duration(struct wiphy *wiphy);