Skip to contentSkip to conversation

mac80211: make address arguments to sta_info_alloc const

PATCH New Johannes Berg 1 participant 1 message Dec 14, 2011 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: make address arguments to sta_info_alloc const

From: Johannes Berg <[email protected]>

No real changes, just note that they are const.

---
 net/mac80211/sta_info.c |    2 +-
 net/mac80211/sta_info.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
net/mac80211/sta_info.c +1 -1
@@ -281,7 +281,7 @@ static int sta_prepare_rate_control(stru
 }
 
 struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata,
-				u8 *addr, gfp_t gfp)
+				const u8 *addr, gfp_t gfp)
 {
 	struct ieee80211_local *local = sdata->local;
 	struct sta_info *sta;
net/mac80211/sta_info.h +1 -1
@@ -522,7 +522,7 @@ struct sta_info *sta_info_get_by_idx(str
  * until sta_info_insert().
  */
 struct sta_info *sta_info_alloc(struct ieee80211_sub_if_data *sdata,
-				u8 *addr, gfp_t gfp);
+				const u8 *addr, gfp_t gfp);
 
 void sta_info_free(struct ieee80211_local *local, struct sta_info *sta);