diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-05-09 14:06:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-11 15:24:07 -0400 |
commit | 4e943900fb9675d3a5ebdabc2cd4a9a54edace97 (patch) | |
tree | 72b6492d01dffa834133c0cdbd52ce4b65392332 /include/net/cfg80211.h | |
parent | 8fbff4b838c53945d6baeafe609c627000f85cd6 (diff) |
cfg80211: constify key mac address in ops
The address pointed to by mac_addr can be marked as const.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 47e30e1d91fe..35afe973d46b 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -860,13 +860,13 @@ struct cfg80211_ops { | |||
860 | struct vif_params *params); | 860 | struct vif_params *params); |
861 | 861 | ||
862 | int (*add_key)(struct wiphy *wiphy, struct net_device *netdev, | 862 | int (*add_key)(struct wiphy *wiphy, struct net_device *netdev, |
863 | u8 key_index, u8 *mac_addr, | 863 | u8 key_index, const u8 *mac_addr, |
864 | struct key_params *params); | 864 | struct key_params *params); |
865 | int (*get_key)(struct wiphy *wiphy, struct net_device *netdev, | 865 | int (*get_key)(struct wiphy *wiphy, struct net_device *netdev, |
866 | u8 key_index, u8 *mac_addr, void *cookie, | 866 | u8 key_index, const u8 *mac_addr, void *cookie, |
867 | void (*callback)(void *cookie, struct key_params*)); | 867 | void (*callback)(void *cookie, struct key_params*)); |
868 | int (*del_key)(struct wiphy *wiphy, struct net_device *netdev, | 868 | int (*del_key)(struct wiphy *wiphy, struct net_device *netdev, |
869 | u8 key_index, u8 *mac_addr); | 869 | u8 key_index, const u8 *mac_addr); |
870 | int (*set_default_key)(struct wiphy *wiphy, | 870 | int (*set_default_key)(struct wiphy *wiphy, |
871 | struct net_device *netdev, | 871 | struct net_device *netdev, |
872 | u8 key_index); | 872 | u8 key_index); |