From: James Prestwood <prestwoj@gmail.com>
To: iwd@lists.linux.dev
Cc: James Prestwood <prestwoj@gmail.com>
Subject: [PATCH 1/4] wiphy: make "wiphy" const in wiphy_has_ext_feature
Date: Mon, 25 Nov 2024 07:06:20 -0800 [thread overview]
Message-ID: <20241125150623.1014890-1-prestwoj@gmail.com> (raw)
---
src/wiphy.c | 2 +-
src/wiphy.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
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);
--
2.34.1
next reply other threads:[~2024-11-25 15:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-25 15:06 James Prestwood [this message]
2024-11-25 15:06 ` [PATCH 2/4] wiphy: add driver quirk for disabling multicast rx (and helper) James Prestwood
2024-11-25 15:06 ` [PATCH 3/4] dpp: use wiphy_supports_multicast_rx James Prestwood
2024-11-25 15:06 ` [PATCH 4/4] doc: document [DriverQuirks].MulticastRxDisable James Prestwood
2024-11-25 17:48 ` [PATCH 1/4] wiphy: make "wiphy" const in wiphy_has_ext_feature Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241125150623.1014890-1-prestwoj@gmail.com \
--to=prestwoj@gmail.com \
--cc=iwd@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox