diff options
-rw-r--r-- | include/net/cfg80211.h | 2 | ||||
-rw-r--r-- | net/mac80211/cfg.c | 2 | ||||
-rw-r--r-- | net/wireless/nl80211.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index e76daaa7dc25..0778d04b3bbe 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1229,7 +1229,7 @@ struct cfg80211_ops { | |||
1229 | int (*get_tx_power)(struct wiphy *wiphy, int *dbm); | 1229 | int (*get_tx_power)(struct wiphy *wiphy, int *dbm); |
1230 | 1230 | ||
1231 | int (*set_wds_peer)(struct wiphy *wiphy, struct net_device *dev, | 1231 | int (*set_wds_peer)(struct wiphy *wiphy, struct net_device *dev, |
1232 | u8 *addr); | 1232 | const u8 *addr); |
1233 | 1233 | ||
1234 | void (*rfkill_poll)(struct wiphy *wiphy); | 1234 | void (*rfkill_poll)(struct wiphy *wiphy); |
1235 | 1235 | ||
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 2e5a3fb38efe..ecf9b7166ed1 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c | |||
@@ -1363,7 +1363,7 @@ static int ieee80211_get_tx_power(struct wiphy *wiphy, int *dbm) | |||
1363 | } | 1363 | } |
1364 | 1364 | ||
1365 | static int ieee80211_set_wds_peer(struct wiphy *wiphy, struct net_device *dev, | 1365 | static int ieee80211_set_wds_peer(struct wiphy *wiphy, struct net_device *dev, |
1366 | u8 *addr) | 1366 | const u8 *addr) |
1367 | { | 1367 | { |
1368 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); | 1368 | struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); |
1369 | 1369 | ||
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 4fed1663aba3..882dc921103b 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -879,7 +879,7 @@ static int nl80211_set_wds_peer(struct sk_buff *skb, struct genl_info *info) | |||
879 | struct cfg80211_registered_device *rdev = info->user_ptr[0]; | 879 | struct cfg80211_registered_device *rdev = info->user_ptr[0]; |
880 | struct net_device *dev = info->user_ptr[1]; | 880 | struct net_device *dev = info->user_ptr[1]; |
881 | struct wireless_dev *wdev = dev->ieee80211_ptr; | 881 | struct wireless_dev *wdev = dev->ieee80211_ptr; |
882 | u8 *bssid; | 882 | const u8 *bssid; |
883 | 883 | ||
884 | if (!info->attrs[NL80211_ATTR_MAC]) | 884 | if (!info->attrs[NL80211_ATTR_MAC]) |
885 | return -EINVAL; | 885 | return -EINVAL; |