diff mbox

cfg80211: constify WDS address

Message ID 1286449869.3657.40.camel@jlt3.sipsolutions.net (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Johannes Berg Oct. 7, 2010, 11:11 a.m. UTC
None
diff mbox

Patch

--- wireless-testing.orig/include/net/cfg80211.h	2010-10-07 13:07:06.000000000 +0200
+++ wireless-testing/include/net/cfg80211.h	2010-10-07 13:07:31.000000000 +0200
@@ -1229,7 +1229,7 @@  struct cfg80211_ops {
 	int	(*get_tx_power)(struct wiphy *wiphy, int *dbm);
 
 	int	(*set_wds_peer)(struct wiphy *wiphy, struct net_device *dev,
-				u8 *addr);
+				const u8 *addr);
 
 	void	(*rfkill_poll)(struct wiphy *wiphy);
 
--- wireless-testing.orig/net/mac80211/cfg.c	2010-10-07 13:07:06.000000000 +0200
+++ wireless-testing/net/mac80211/cfg.c	2010-10-07 13:07:31.000000000 +0200
@@ -1363,7 +1363,7 @@  static int ieee80211_get_tx_power(struct
 }
 
 static int ieee80211_set_wds_peer(struct wiphy *wiphy, struct net_device *dev,
-				  u8 *addr)
+				  const u8 *addr)
 {
 	struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
 
--- wireless-testing.orig/net/wireless/nl80211.c	2010-10-07 13:07:19.000000000 +0200
+++ wireless-testing/net/wireless/nl80211.c	2010-10-07 13:07:31.000000000 +0200
@@ -879,7 +879,7 @@  static int nl80211_set_wds_peer(struct s
 	struct cfg80211_registered_device *rdev = info->user_ptr[0];
 	struct net_device *dev = info->user_ptr[1];
 	struct wireless_dev *wdev = dev->ieee80211_ptr;
-	u8 *bssid;
+	const u8 *bssid;
 
 	if (!info->attrs[NL80211_ATTR_MAC])
 		return -EINVAL;