提交 2c1aabf3 编写于 作者: J Johannes Berg

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: NJohannes Berg <johannes.berg@intel.com>
上级 f8bacc21
...@@ -658,7 +658,7 @@ enum station_parameters_apply_mask { ...@@ -658,7 +658,7 @@ enum station_parameters_apply_mask {
* @ext_capab_len: number of extended capabilities * @ext_capab_len: number of extended capabilities
*/ */
struct station_parameters { struct station_parameters {
u8 *supported_rates; const u8 *supported_rates;
struct net_device *vlan; struct net_device *vlan;
u32 sta_flags_mask, sta_flags_set; u32 sta_flags_mask, sta_flags_set;
u32 sta_modify_mask; u32 sta_modify_mask;
...@@ -667,13 +667,13 @@ struct station_parameters { ...@@ -667,13 +667,13 @@ struct station_parameters {
u8 supported_rates_len; u8 supported_rates_len;
u8 plink_action; u8 plink_action;
u8 plink_state; u8 plink_state;
struct ieee80211_ht_cap *ht_capa; const struct ieee80211_ht_cap *ht_capa;
struct ieee80211_vht_cap *vht_capa; const struct ieee80211_vht_cap *vht_capa;
u8 uapsd_queues; u8 uapsd_queues;
u8 max_sp; u8 max_sp;
enum nl80211_mesh_power_mode local_pm; enum nl80211_mesh_power_mode local_pm;
u16 capability; u16 capability;
u8 *ext_capab; const u8 *ext_capab;
u8 ext_capab_len; u8 ext_capab_len;
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册