Message ID | 20241125150623.1014890-1-prestwoj@gmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | [1/4] wiphy: make "wiphy" const in wiphy_has_ext_feature | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
prestwoj/iwd-alpine-ci-fetch | success | Fetch PR |
prestwoj/iwd-ci-fetch | success | Fetch PR |
prestwoj/iwd-ci-gitlint | success | GitLint |
prestwoj/iwd-alpine-ci-setupell | success | Prep - Setup ELL |
prestwoj/iwd-ci-setupell | success | Prep - Setup ELL |
prestwoj/iwd-ci-makedistcheck | success | Make Distcheck |
prestwoj/iwd-alpine-ci-makedistcheck | success | Make Distcheck |
prestwoj/iwd-ci-build | success | Build - Configure |
prestwoj/iwd-alpine-ci-build | success | Build - Configure |
prestwoj/iwd-ci-makecheckvalgrind | success | Make Check w/Valgrind |
prestwoj/iwd-ci-makecheck | success | Make Check |
prestwoj/iwd-ci-clang | success | clang PASS |
prestwoj/iwd-alpine-ci-makecheckvalgrind | success | Make Check w/Valgrind |
prestwoj/iwd-alpine-ci-makecheck | success | Make Check |
prestwoj/iwd-ci-incremental_build | success | Incremental Build with patches |
prestwoj/iwd-alpine-ci-incremental_build | success | Incremental Build with patches |
prestwoj/iwd-ci-testrunner | success | test-runner PASS |
Hi James, On 11/25/24 9:06 AM, James Prestwood wrote: > --- > src/wiphy.c | 2 +- > src/wiphy.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > All applied, thanks. Regards, -Denis
diff --git a/src/wiphy.c b/src/wiphy.c index c286bb48..ecc345e9 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -643,7 +643,7 @@ bool wiphy_rrm_capable(struct wiphy *wiphy) 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 && test_bit(wiphy->ext_features, feature); diff --git a/src/wiphy.h b/src/wiphy.h index 43e4aeb3..c527c79d 100644 --- a/src/wiphy.h +++ b/src/wiphy.h @@ -119,7 +119,7 @@ bool wiphy_can_randomize_mac_addr(struct wiphy *wiphy); bool wiphy_rrm_capable(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_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); uint16_t wiphy_get_max_scan_ie_len(struct wiphy *wiphy); uint32_t wiphy_get_max_roc_duration(struct wiphy *wiphy);