aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless/util.c
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 /net/wireless/util.c
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 '')
-rw-r--r--net/wireless/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/util.c b/net/wireless/util.c
index 1bf0200f562a..382c5262d997 100644
--- a/net/wireless/util.c
+++ b/net/wireless/util.c
@@ -24,7 +24,7 @@
#include "rdev-ops.h"
-struct ieee80211_rate *
+const struct ieee80211_rate *
ieee80211_get_response_rate(struct ieee80211_supported_band *sband,
u32 basic_rates, int bitrate)
{