aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/cfg80211.h2
-rw-r--r--net/wireless/core.c2
-rw-r--r--net/wireless/core.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 7391ad10c8c0..09a823520e58 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -1073,7 +1073,7 @@ static inline const char *wiphy_name(struct wiphy *wiphy)
1073 * The returned pointer must be assigned to each netdev's 1073 * The returned pointer must be assigned to each netdev's
1074 * ieee80211_ptr for proper operation. 1074 * ieee80211_ptr for proper operation.
1075 */ 1075 */
1076struct wiphy *wiphy_new(struct cfg80211_ops *ops, int sizeof_priv); 1076struct wiphy *wiphy_new(const struct cfg80211_ops *ops, int sizeof_priv);
1077 1077
1078/** 1078/**
1079 * wiphy_register - register a wiphy with cfg80211 1079 * wiphy_register - register a wiphy with cfg80211
diff --git a/net/wireless/core.c b/net/wireless/core.c
index b6ef5337c85f..a5dbea1da476 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -229,7 +229,7 @@ int cfg80211_dev_rename(struct cfg80211_registered_device *rdev,
229 229
230/* exported functions */ 230/* exported functions */
231 231
232struct wiphy *wiphy_new(struct cfg80211_ops *ops, int sizeof_priv) 232struct wiphy *wiphy_new(const struct cfg80211_ops *ops, int sizeof_priv)
233{ 233{
234 static int wiphy_counter; 234 static int wiphy_counter;
235 235
diff --git a/net/wireless/core.h b/net/wireless/core.h
index 88f234c8f6b3..9511c2be83d8 100644
--- a/net/wireless/core.h
+++ b/net/wireless/core.h
@@ -16,7 +16,7 @@
16#include "reg.h" 16#include "reg.h"
17 17
18struct cfg80211_registered_device { 18struct cfg80211_registered_device {
19 struct cfg80211_ops *ops; 19 const struct cfg80211_ops *ops;
20 struct list_head list; 20 struct list_head list;
21 /* we hold this mutex during any call so that 21 /* we hold this mutex during any call so that
22 * we cannot do multiple calls at once, and also 22 * we cannot do multiple calls at once, and also