net: rsi: mac80211: constify ieee80211_ops
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 23 Aug 2017 09:59:34 +0000 (15:29 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 24 Aug 2017 09:57:31 +0000 (12:57 +0300)
ieee80211_ops are not supposed to change at runtime. All functions
working with ieee80211_ops provided by <net/mac80211.h> work with
const ieee80211_ops. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_mac80211.c

index 8b983d03f2da49e8d2cef8173f221997e31cdd30..e24c8b36b1579bfb8065d4a5bef748161ee7b252 100644 (file)
@@ -1503,7 +1503,7 @@ static void rsi_mac80211_rfkill_poll(struct ieee80211_hw *hw)
        mutex_unlock(&common->mutex);
 }
 
-static struct ieee80211_ops mac80211_ops = {
+static const struct ieee80211_ops mac80211_ops = {
        .tx = rsi_mac80211_tx,
        .start = rsi_mac80211_start,
        .stop = rsi_mac80211_stop,