aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-02-14 17:33:40 -0500
committerJohannes Berg <johannes.berg@intel.com>2013-03-06 10:35:38 -0500
commit2c1aabf33d1832befc5291a14c870cd09dc2182d (patch)
tree0d2e4675c4709a0e437a5548e89bca8cabad300d
parentf8bacc210408f7a2a182f184a9fa1475b8a67440 (diff)
cfg80211: constify station parameter pointers
All the pointers point right into the skb data and not to anything that would be useful to change, so make them const. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--include/net/cfg80211.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 9b54574c3df9..7ca321d2b599 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -658,7 +658,7 @@ enum station_parameters_apply_mask {
658 * @ext_capab_len: number of extended capabilities 658 * @ext_capab_len: number of extended capabilities
659 */ 659 */
660struct station_parameters { 660struct station_parameters {
661 u8 *supported_rates; 661 const u8 *supported_rates;
662 struct net_device *vlan; 662 struct net_device *vlan;
663 u32 sta_flags_mask, sta_flags_set; 663 u32 sta_flags_mask, sta_flags_set;
664 u32 sta_modify_mask; 664 u32 sta_modify_mask;
@@ -667,13 +667,13 @@ struct station_parameters {
667 u8 supported_rates_len; 667 u8 supported_rates_len;
668 u8 plink_action; 668 u8 plink_action;
669 u8 plink_state; 669 u8 plink_state;
670 struct ieee80211_ht_cap *ht_capa; 670 const struct ieee80211_ht_cap *ht_capa;
671 struct ieee80211_vht_cap *vht_capa; 671 const struct ieee80211_vht_cap *vht_capa;
672 u8 uapsd_queues; 672 u8 uapsd_queues;
673 u8 max_sp; 673 u8 max_sp;
674 enum nl80211_mesh_power_mode local_pm; 674 enum nl80211_mesh_power_mode local_pm;
675 u16 capability; 675 u16 capability;
676 u8 *ext_capab; 676 const u8 *ext_capab;
677 u8 ext_capab_len; 677 u8 ext_capab_len;
678}; 678};
679 679