aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2014-01-20 17:55:44 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-02-04 15:48:21 -0500
commit8a47cea7d4a25babf14d02be8aabb98949dd2bed (patch)
treead6bf9c6a4d0380925cc0b8ba466e31a588b7e88
parent631ad703ba3a585e96acbfd2ac8c0f0fee1ad99b (diff)
mac80211: make cfg80211 ops and privid const
The wiphy privid (to identify wiphys) and the cfg80211 ops should both be const, so change them to be. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--net/mac80211/cfg.c2
-rw-r--r--net/mac80211/cfg.h2
-rw-r--r--net/mac80211/ieee80211_i.h2
-rw-r--r--net/mac80211/util.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index d2125a37014a..cf27c623394a 100644
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
@@ -3918,7 +3918,7 @@ static int ieee80211_set_qos_map(struct wiphy *wiphy,
3918 return 0; 3918 return 0;
3919} 3919}
3920 3920
3921struct cfg80211_ops mac80211_config_ops = { 3921const struct cfg80211_ops mac80211_config_ops = {
3922 .add_virtual_intf = ieee80211_add_iface, 3922 .add_virtual_intf = ieee80211_add_iface,
3923 .del_virtual_intf = ieee80211_del_iface, 3923 .del_virtual_intf = ieee80211_del_iface,
3924 .change_virtual_intf = ieee80211_change_iface, 3924 .change_virtual_intf = ieee80211_change_iface,
diff --git a/net/mac80211/cfg.h b/net/mac80211/cfg.h
index 7d7879f5b00b..2d51f62dc76c 100644
--- a/net/mac80211/cfg.h
+++ b/net/mac80211/cfg.h
@@ -4,6 +4,6 @@
4#ifndef __CFG_H 4#ifndef __CFG_H
5#define __CFG_H 5#define __CFG_H
6 6
7extern struct cfg80211_ops mac80211_config_ops; 7extern const struct cfg80211_ops mac80211_config_ops;
8 8
9#endif /* __CFG_H */ 9#endif /* __CFG_H */
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
index 96eb272297e1..d37dc75baffd 100644
--- a/net/mac80211/ieee80211_i.h
+++ b/net/mac80211/ieee80211_i.h
@@ -1608,7 +1608,7 @@ static inline int __ieee80211_resume(struct ieee80211_hw *hw)
1608} 1608}
1609 1609
1610/* utility functions/constants */ 1610/* utility functions/constants */
1611extern void *mac80211_wiphy_privid; /* for wiphy privid */ 1611extern const void *const mac80211_wiphy_privid; /* for wiphy privid */
1612u8 *ieee80211_get_bssid(struct ieee80211_hdr *hdr, size_t len, 1612u8 *ieee80211_get_bssid(struct ieee80211_hdr *hdr, size_t len,
1613 enum nl80211_iftype type); 1613 enum nl80211_iftype type);
1614int ieee80211_frame_duration(enum ieee80211_band band, size_t len, 1614int ieee80211_frame_duration(enum ieee80211_band band, size_t len,
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 676dc0967f37..128a0c57a0d3 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -34,7 +34,7 @@
34#include "wep.h" 34#include "wep.h"
35 35
36/* privid for wiphys to determine whether they belong to us or not */ 36/* privid for wiphys to determine whether they belong to us or not */
37void *mac80211_wiphy_privid = &mac80211_wiphy_privid; 37const void *const mac80211_wiphy_privid = &mac80211_wiphy_privid;
38 38
39struct ieee80211_hw *wiphy_to_ieee80211_hw(struct wiphy *wiphy) 39struct ieee80211_hw *wiphy_to_ieee80211_hw(struct wiphy *wiphy)
40{ 40{