wifi: cfg80211: make RX assoc data const
This is just a collection of data and we only read it, so make it const. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
ccf7dd94c7
commit
88f2932404
@ -7312,7 +7312,7 @@ struct cfg80211_rx_assoc_resp_data {
|
||||
* This function may sleep. The caller must hold the corresponding wdev's mutex.
|
||||
*/
|
||||
void cfg80211_rx_assoc_resp(struct net_device *dev,
|
||||
struct cfg80211_rx_assoc_resp_data *data);
|
||||
const struct cfg80211_rx_assoc_resp_data *data);
|
||||
|
||||
/**
|
||||
* struct cfg80211_assoc_failure - association failure data
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
|
||||
void cfg80211_rx_assoc_resp(struct net_device *dev,
|
||||
struct cfg80211_rx_assoc_resp_data *data)
|
||||
const struct cfg80211_rx_assoc_resp_data *data)
|
||||
{
|
||||
struct wireless_dev *wdev = dev->ieee80211_ptr;
|
||||
struct wiphy *wiphy = wdev->wiphy;
|
||||
|
@ -17815,7 +17815,7 @@ void nl80211_send_rx_auth(struct cfg80211_registered_device *rdev,
|
||||
|
||||
void nl80211_send_rx_assoc(struct cfg80211_registered_device *rdev,
|
||||
struct net_device *netdev,
|
||||
struct cfg80211_rx_assoc_resp_data *data)
|
||||
const struct cfg80211_rx_assoc_resp_data *data)
|
||||
{
|
||||
struct nl80211_mlme_event event = {
|
||||
.cmd = NL80211_CMD_ASSOCIATE,
|
||||
|
@ -60,7 +60,7 @@ void nl80211_send_rx_auth(struct cfg80211_registered_device *rdev,
|
||||
const u8 *buf, size_t len, gfp_t gfp);
|
||||
void nl80211_send_rx_assoc(struct cfg80211_registered_device *rdev,
|
||||
struct net_device *netdev,
|
||||
struct cfg80211_rx_assoc_resp_data *data);
|
||||
const struct cfg80211_rx_assoc_resp_data *data);
|
||||
void nl80211_send_deauth(struct cfg80211_registered_device *rdev,
|
||||
struct net_device *netdev,
|
||||
const u8 *buf, size_t len,
|
||||
|
@ -2928,7 +2928,7 @@ DEFINE_EVENT(netdev_evt_only, cfg80211_send_rx_auth,
|
||||
|
||||
TRACE_EVENT(cfg80211_send_rx_assoc,
|
||||
TP_PROTO(struct net_device *netdev,
|
||||
struct cfg80211_rx_assoc_resp_data *data),
|
||||
const struct cfg80211_rx_assoc_resp_data *data),
|
||||
TP_ARGS(netdev, data),
|
||||
TP_STRUCT__entry(
|
||||
NETDEV_ENTRY
|
||||
|
Loading…
Reference in New Issue
Block a user