mac80211: make address arguments to sta_info_alloc const
authorJohannes Berg <johannes.berg@intel.com>
Wed, 14 Dec 2011 12:28:46 +0000 (13:28 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 15 Dec 2011 19:46:34 +0000 (14:46 -0500)
No real changes, just note that they are const.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/sta_info.c
net/mac80211/sta_info.h

index 141315ce17d8097b70de1064395158a37fe7a277..16de3bd16107752e2a1705c6a77dfda66a08a8cc 100644 (file)
@@ -281,7 +281,7 @@ static int sta_prepare_rate_control(struct ieee80211_local *local,
 }
 
 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;
index 63f4d316a954b950ae27762df2e3333e3d2ed15d..15b3bb7d8629769b1e4756f58e29daeb160bca02 100644 (file)
@@ -522,7 +522,7 @@ struct sta_info *sta_info_get_by_idx(struct ieee80211_sub_if_data *sdata,
  * 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);