aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2021-04-18 01:39:53 -0700
committerJohannes Berg <johannes.berg@intel.com>2021-04-19 11:59:33 +0200
commit623b988f2dcbecf3e638ecfaec97cc56a95eaa6a (patch)
tree0922b7a068f499dfef579c9d67e534ae74743b02 /include/net
parentcfg80211: fix a few kernel-doc warnings (diff)
downloadlinux-dev-623b988f2dcbecf3e638ecfaec97cc56a95eaa6a.tar.xz
linux-dev-623b988f2dcbecf3e638ecfaec97cc56a95eaa6a.zip
cfg80211: constify ieee80211_get_response_rate return
It's not modified so make it const with the eventual goal of moving data to text for various static struct ieee80211_rate arrays. Signed-off-by: Joe Perches <joe@perches.com> Link: https://lore.kernel.org/r/8b210b5f5972e39eded269b35a1297cf824c4181.camel@perches.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/cfg80211.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 528bea585bee..73b17ea89248 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -5607,7 +5607,7 @@ static inline bool cfg80211_channel_is_psc(struct ieee80211_channel *chan)
* which is, for this function, given as a bitmap of indices of
* rates in the band's bitrate table.
*/
-struct ieee80211_rate *
+const struct ieee80211_rate *
ieee80211_get_response_rate(struct ieee80211_supported_band *sband,
u32 basic_rates, int bitrate);