Commit 3b3a0162 authored by Johannes Berg's avatar Johannes Berg

cfg80211: constify MAC addresses in cfg80211 ops

This propagates through all the drivers and mac80211.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 8d77ec85
...@@ -1759,7 +1759,7 @@ static bool is_rate_ht40(s32 rate, u8 *mcs, bool *sgi) ...@@ -1759,7 +1759,7 @@ static bool is_rate_ht40(s32 rate, u8 *mcs, bool *sgi)
} }
static int ath6kl_get_station(struct wiphy *wiphy, struct net_device *dev, static int ath6kl_get_station(struct wiphy *wiphy, struct net_device *dev,
u8 *mac, struct station_info *sinfo) const u8 *mac, struct station_info *sinfo)
{ {
struct ath6kl *ar = ath6kl_priv(dev); struct ath6kl *ar = ath6kl_priv(dev);
struct ath6kl_vif *vif = netdev_priv(dev); struct ath6kl_vif *vif = netdev_priv(dev);
...@@ -2975,7 +2975,7 @@ static int ath6kl_stop_ap(struct wiphy *wiphy, struct net_device *dev) ...@@ -2975,7 +2975,7 @@ static int ath6kl_stop_ap(struct wiphy *wiphy, struct net_device *dev)
static const u8 bcast_addr[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }; static const u8 bcast_addr[ETH_ALEN] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
static int ath6kl_del_station(struct wiphy *wiphy, struct net_device *dev, static int ath6kl_del_station(struct wiphy *wiphy, struct net_device *dev,
u8 *mac) const u8 *mac)
{ {
struct ath6kl *ar = ath6kl_priv(dev); struct ath6kl *ar = ath6kl_priv(dev);
struct ath6kl_vif *vif = netdev_priv(dev); struct ath6kl_vif *vif = netdev_priv(dev);
...@@ -2986,7 +2986,8 @@ static int ath6kl_del_station(struct wiphy *wiphy, struct net_device *dev, ...@@ -2986,7 +2986,8 @@ static int ath6kl_del_station(struct wiphy *wiphy, struct net_device *dev,
} }
static int ath6kl_change_station(struct wiphy *wiphy, struct net_device *dev, static int ath6kl_change_station(struct wiphy *wiphy, struct net_device *dev,
u8 *mac, struct station_parameters *params) const u8 *mac,
struct station_parameters *params)
{ {
struct ath6kl *ar = ath6kl_priv(dev); struct ath6kl *ar = ath6kl_priv(dev);
struct ath6kl_vif *vif = netdev_priv(dev); struct ath6kl_vif *vif = netdev_priv(dev);
......
...@@ -172,7 +172,7 @@ static int wil_cid_fill_sinfo(struct wil6210_priv *wil, int cid, ...@@ -172,7 +172,7 @@ static int wil_cid_fill_sinfo(struct wil6210_priv *wil, int cid,
static int wil_cfg80211_get_station(struct wiphy *wiphy, static int wil_cfg80211_get_station(struct wiphy *wiphy,
struct net_device *ndev, struct net_device *ndev,
u8 *mac, struct station_info *sinfo) const u8 *mac, struct station_info *sinfo)
{ {
struct wil6210_priv *wil = wiphy_to_wil(wiphy); struct wil6210_priv *wil = wiphy_to_wil(wiphy);
int rc; int rc;
...@@ -671,7 +671,7 @@ static int wil_cfg80211_stop_ap(struct wiphy *wiphy, ...@@ -671,7 +671,7 @@ static int wil_cfg80211_stop_ap(struct wiphy *wiphy,
} }
static int wil_cfg80211_del_station(struct wiphy *wiphy, static int wil_cfg80211_del_station(struct wiphy *wiphy,
struct net_device *dev, u8 *mac) struct net_device *dev, const u8 *mac)
{ {
struct wil6210_priv *wil = wiphy_to_wil(wiphy); struct wil6210_priv *wil = wiphy_to_wil(wiphy);
......
...@@ -81,7 +81,7 @@ static void wil_disconnect_cid(struct wil6210_priv *wil, int cid) ...@@ -81,7 +81,7 @@ static void wil_disconnect_cid(struct wil6210_priv *wil, int cid)
memset(&sta->stats, 0, sizeof(sta->stats)); memset(&sta->stats, 0, sizeof(sta->stats));
} }
static void _wil6210_disconnect(struct wil6210_priv *wil, void *bssid) static void _wil6210_disconnect(struct wil6210_priv *wil, const u8 *bssid)
{ {
int cid = -ENOENT; int cid = -ENOENT;
struct net_device *ndev = wil_to_ndev(wil); struct net_device *ndev = wil_to_ndev(wil);
...@@ -252,7 +252,7 @@ int wil_priv_init(struct wil6210_priv *wil) ...@@ -252,7 +252,7 @@ int wil_priv_init(struct wil6210_priv *wil)
return 0; return 0;
} }
void wil6210_disconnect(struct wil6210_priv *wil, void *bssid) void wil6210_disconnect(struct wil6210_priv *wil, const u8 *bssid)
{ {
del_timer_sync(&wil->connect_timer); del_timer_sync(&wil->connect_timer);
_wil6210_disconnect(wil, bssid); _wil6210_disconnect(wil, bssid);
......
...@@ -507,7 +507,7 @@ void wil_wdev_free(struct wil6210_priv *wil); ...@@ -507,7 +507,7 @@ void wil_wdev_free(struct wil6210_priv *wil);
int wmi_set_mac_address(struct wil6210_priv *wil, void *addr); int wmi_set_mac_address(struct wil6210_priv *wil, void *addr);
int wmi_pcp_start(struct wil6210_priv *wil, int bi, u8 wmi_nettype, u8 chan); int wmi_pcp_start(struct wil6210_priv *wil, int bi, u8 wmi_nettype, u8 chan);
int wmi_pcp_stop(struct wil6210_priv *wil); int wmi_pcp_stop(struct wil6210_priv *wil);
void wil6210_disconnect(struct wil6210_priv *wil, void *bssid); void wil6210_disconnect(struct wil6210_priv *wil, const u8 *bssid);
int wil_rx_init(struct wil6210_priv *wil); int wil_rx_init(struct wil6210_priv *wil);
void wil_rx_fini(struct wil6210_priv *wil); void wil_rx_fini(struct wil6210_priv *wil);
......
...@@ -2182,7 +2182,7 @@ brcmf_cfg80211_config_default_mgmt_key(struct wiphy *wiphy, ...@@ -2182,7 +2182,7 @@ brcmf_cfg80211_config_default_mgmt_key(struct wiphy *wiphy,
static s32 static s32
brcmf_cfg80211_get_station(struct wiphy *wiphy, struct net_device *ndev, brcmf_cfg80211_get_station(struct wiphy *wiphy, struct net_device *ndev,
u8 *mac, struct station_info *sinfo) const u8 *mac, struct station_info *sinfo)
{ {
struct brcmf_if *ifp = netdev_priv(ndev); struct brcmf_if *ifp = netdev_priv(ndev);
struct brcmf_cfg80211_profile *profile = &ifp->vif->profile; struct brcmf_cfg80211_profile *profile = &ifp->vif->profile;
...@@ -3975,7 +3975,7 @@ brcmf_cfg80211_change_beacon(struct wiphy *wiphy, struct net_device *ndev, ...@@ -3975,7 +3975,7 @@ brcmf_cfg80211_change_beacon(struct wiphy *wiphy, struct net_device *ndev,
static int static int
brcmf_cfg80211_del_station(struct wiphy *wiphy, struct net_device *ndev, brcmf_cfg80211_del_station(struct wiphy *wiphy, struct net_device *ndev,
u8 *mac) const u8 *mac)
{ {
struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy); struct brcmf_cfg80211_info *cfg = wiphy_to_cfg(wiphy);
struct brcmf_scb_val_le scbval; struct brcmf_scb_val_le scbval;
...@@ -4203,7 +4203,7 @@ static int brcmf_convert_nl80211_tdls_oper(enum nl80211_tdls_operation oper) ...@@ -4203,7 +4203,7 @@ static int brcmf_convert_nl80211_tdls_oper(enum nl80211_tdls_operation oper)
} }
static int brcmf_cfg80211_tdls_oper(struct wiphy *wiphy, static int brcmf_cfg80211_tdls_oper(struct wiphy *wiphy,
struct net_device *ndev, u8 *peer, struct net_device *ndev, const u8 *peer,
enum nl80211_tdls_operation oper) enum nl80211_tdls_operation oper)
{ {
struct brcmf_if *ifp; struct brcmf_if *ifp;
......
...@@ -1610,7 +1610,7 @@ static int lbs_cfg_del_key(struct wiphy *wiphy, struct net_device *netdev, ...@@ -1610,7 +1610,7 @@ static int lbs_cfg_del_key(struct wiphy *wiphy, struct net_device *netdev,
*/ */
static int lbs_cfg_get_station(struct wiphy *wiphy, struct net_device *dev, static int lbs_cfg_get_station(struct wiphy *wiphy, struct net_device *dev,
u8 *mac, struct station_info *sinfo) const u8 *mac, struct station_info *sinfo)
{ {
struct lbs_private *priv = wiphy_priv(wiphy); struct lbs_private *priv = wiphy_priv(wiphy);
s8 signal, noise; s8 signal, noise;
......
...@@ -199,7 +199,7 @@ static inline int mwifiex_is_sta_11n_enabled(struct mwifiex_private *priv, ...@@ -199,7 +199,7 @@ static inline int mwifiex_is_sta_11n_enabled(struct mwifiex_private *priv,
} }
static inline u8 static inline u8
mwifiex_tdls_peer_11n_enabled(struct mwifiex_private *priv, u8 *ra) mwifiex_tdls_peer_11n_enabled(struct mwifiex_private *priv, const u8 *ra)
{ {
struct mwifiex_sta_node *node = mwifiex_get_sta_entry(priv, ra); struct mwifiex_sta_node *node = mwifiex_get_sta_entry(priv, ra);
if (node) if (node)
......
...@@ -994,7 +994,7 @@ mwifiex_dump_station_info(struct mwifiex_private *priv, ...@@ -994,7 +994,7 @@ mwifiex_dump_station_info(struct mwifiex_private *priv,
*/ */
static int static int
mwifiex_cfg80211_get_station(struct wiphy *wiphy, struct net_device *dev, mwifiex_cfg80211_get_station(struct wiphy *wiphy, struct net_device *dev,
u8 *mac, struct station_info *sinfo) const u8 *mac, struct station_info *sinfo)
{ {
struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev); struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
...@@ -1270,7 +1270,7 @@ static int mwifiex_cfg80211_change_beacon(struct wiphy *wiphy, ...@@ -1270,7 +1270,7 @@ static int mwifiex_cfg80211_change_beacon(struct wiphy *wiphy,
*/ */
static int static int
mwifiex_cfg80211_del_station(struct wiphy *wiphy, struct net_device *dev, mwifiex_cfg80211_del_station(struct wiphy *wiphy, struct net_device *dev,
u8 *mac) const u8 *mac)
{ {
struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev); struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
struct mwifiex_sta_node *sta_node; struct mwifiex_sta_node *sta_node;
...@@ -2629,7 +2629,7 @@ static int mwifiex_cfg80211_set_coalesce(struct wiphy *wiphy, ...@@ -2629,7 +2629,7 @@ static int mwifiex_cfg80211_set_coalesce(struct wiphy *wiphy,
*/ */
static int static int
mwifiex_cfg80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev, mwifiex_cfg80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev,
u8 *peer, u8 action_code, u8 dialog_token, const u8 *peer, u8 action_code, u8 dialog_token,
u16 status_code, u32 peer_capability, u16 status_code, u32 peer_capability,
const u8 *extra_ies, size_t extra_ies_len) const u8 *extra_ies, size_t extra_ies_len)
{ {
...@@ -2701,7 +2701,7 @@ mwifiex_cfg80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev, ...@@ -2701,7 +2701,7 @@ mwifiex_cfg80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev,
static int static int
mwifiex_cfg80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev, mwifiex_cfg80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev,
u8 *peer, enum nl80211_tdls_operation action) const u8 *peer, enum nl80211_tdls_operation action)
{ {
struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev); struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
...@@ -2748,9 +2748,8 @@ mwifiex_cfg80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev, ...@@ -2748,9 +2748,8 @@ mwifiex_cfg80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev,
} }
static int static int
mwifiex_cfg80211_add_station(struct wiphy *wiphy, mwifiex_cfg80211_add_station(struct wiphy *wiphy, struct net_device *dev,
struct net_device *dev, const u8 *mac, struct station_parameters *params)
u8 *mac, struct station_parameters *params)
{ {
struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev); struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
...@@ -2765,9 +2764,9 @@ mwifiex_cfg80211_add_station(struct wiphy *wiphy, ...@@ -2765,9 +2764,9 @@ mwifiex_cfg80211_add_station(struct wiphy *wiphy,
} }
static int static int
mwifiex_cfg80211_change_station(struct wiphy *wiphy, mwifiex_cfg80211_change_station(struct wiphy *wiphy, struct net_device *dev,
struct net_device *dev, const u8 *mac,
u8 *mac, struct station_parameters *params) struct station_parameters *params)
{ {
int ret; int ret;
struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev); struct mwifiex_private *priv = mwifiex_netdev_get_priv(dev);
......
...@@ -910,8 +910,6 @@ int mwifiex_handle_uap_rx_forward(struct mwifiex_private *priv, ...@@ -910,8 +910,6 @@ int mwifiex_handle_uap_rx_forward(struct mwifiex_private *priv,
struct sk_buff *skb); struct sk_buff *skb);
int mwifiex_process_sta_event(struct mwifiex_private *); int mwifiex_process_sta_event(struct mwifiex_private *);
int mwifiex_process_uap_event(struct mwifiex_private *); int mwifiex_process_uap_event(struct mwifiex_private *);
struct mwifiex_sta_node *
mwifiex_get_sta_entry(struct mwifiex_private *priv, u8 *mac);
void mwifiex_delete_all_station_list(struct mwifiex_private *priv); void mwifiex_delete_all_station_list(struct mwifiex_private *priv);
void *mwifiex_process_sta_txpd(struct mwifiex_private *, struct sk_buff *skb); void *mwifiex_process_sta_txpd(struct mwifiex_private *, struct sk_buff *skb);
void *mwifiex_process_uap_txpd(struct mwifiex_private *, struct sk_buff *skb); void *mwifiex_process_uap_txpd(struct mwifiex_private *, struct sk_buff *skb);
...@@ -1220,26 +1218,26 @@ void mwifiex_dnld_txpwr_table(struct mwifiex_private *priv); ...@@ -1220,26 +1218,26 @@ void mwifiex_dnld_txpwr_table(struct mwifiex_private *priv);
extern const struct ethtool_ops mwifiex_ethtool_ops; extern const struct ethtool_ops mwifiex_ethtool_ops;
void mwifiex_del_all_sta_list(struct mwifiex_private *priv); void mwifiex_del_all_sta_list(struct mwifiex_private *priv);
void mwifiex_del_sta_entry(struct mwifiex_private *priv, u8 *mac); void mwifiex_del_sta_entry(struct mwifiex_private *priv, const u8 *mac);
void void
mwifiex_set_sta_ht_cap(struct mwifiex_private *priv, const u8 *ies, mwifiex_set_sta_ht_cap(struct mwifiex_private *priv, const u8 *ies,
int ies_len, struct mwifiex_sta_node *node); int ies_len, struct mwifiex_sta_node *node);
struct mwifiex_sta_node * struct mwifiex_sta_node *
mwifiex_add_sta_entry(struct mwifiex_private *priv, u8 *mac); mwifiex_add_sta_entry(struct mwifiex_private *priv, const u8 *mac);
struct mwifiex_sta_node * struct mwifiex_sta_node *
mwifiex_get_sta_entry(struct mwifiex_private *priv, u8 *mac); mwifiex_get_sta_entry(struct mwifiex_private *priv, const u8 *mac);
int mwifiex_send_tdls_data_frame(struct mwifiex_private *priv, u8 *peer, int mwifiex_send_tdls_data_frame(struct mwifiex_private *priv, const u8 *peer,
u8 action_code, u8 dialog_token, u8 action_code, u8 dialog_token,
u16 status_code, const u8 *extra_ies, u16 status_code, const u8 *extra_ies,
size_t extra_ies_len); size_t extra_ies_len);
int mwifiex_send_tdls_action_frame(struct mwifiex_private *priv, int mwifiex_send_tdls_action_frame(struct mwifiex_private *priv, const u8 *peer,
u8 *peer, u8 action_code, u8 dialog_token, u8 action_code, u8 dialog_token,
u16 status_code, const u8 *extra_ies, u16 status_code, const u8 *extra_ies,
size_t extra_ies_len); size_t extra_ies_len);
void mwifiex_process_tdls_action_frame(struct mwifiex_private *priv, void mwifiex_process_tdls_action_frame(struct mwifiex_private *priv,
u8 *buf, int len); u8 *buf, int len);
int mwifiex_tdls_oper(struct mwifiex_private *priv, u8 *peer, u8 action); int mwifiex_tdls_oper(struct mwifiex_private *priv, const u8 *peer, u8 action);
int mwifiex_get_tdls_link_status(struct mwifiex_private *priv, u8 *mac); int mwifiex_get_tdls_link_status(struct mwifiex_private *priv, const u8 *mac);
void mwifiex_disable_all_tdls_links(struct mwifiex_private *priv); void mwifiex_disable_all_tdls_links(struct mwifiex_private *priv);
bool mwifiex_is_bss_in_11ac_mode(struct mwifiex_private *priv); bool mwifiex_is_bss_in_11ac_mode(struct mwifiex_private *priv);
u8 mwifiex_get_center_freq_index(struct mwifiex_private *priv, u8 band, u8 mwifiex_get_center_freq_index(struct mwifiex_private *priv, u8 band,
......
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
#define TDLS_RESP_FIX_LEN 8 #define TDLS_RESP_FIX_LEN 8
#define TDLS_CONFIRM_FIX_LEN 6 #define TDLS_CONFIRM_FIX_LEN 6
static void static void mwifiex_restore_tdls_packets(struct mwifiex_private *priv,
mwifiex_restore_tdls_packets(struct mwifiex_private *priv, u8 *mac, u8 status) const u8 *mac, u8 status)
{ {
struct mwifiex_ra_list_tbl *ra_list; struct mwifiex_ra_list_tbl *ra_list;
struct list_head *tid_list; struct list_head *tid_list;
...@@ -84,7 +84,8 @@ mwifiex_restore_tdls_packets(struct mwifiex_private *priv, u8 *mac, u8 status) ...@@ -84,7 +84,8 @@ mwifiex_restore_tdls_packets(struct mwifiex_private *priv, u8 *mac, u8 status)
return; return;
} }
static void mwifiex_hold_tdls_packets(struct mwifiex_private *priv, u8 *mac) static void mwifiex_hold_tdls_packets(struct mwifiex_private *priv,
const u8 *mac)
{ {
struct mwifiex_ra_list_tbl *ra_list; struct mwifiex_ra_list_tbl *ra_list;
struct list_head *ra_list_head; struct list_head *ra_list_head;
...@@ -186,7 +187,7 @@ static int mwifiex_tdls_add_vht_capab(struct mwifiex_private *priv, ...@@ -186,7 +187,7 @@ static int mwifiex_tdls_add_vht_capab(struct mwifiex_private *priv,
} }
static int mwifiex_tdls_add_vht_oper(struct mwifiex_private *priv, static int mwifiex_tdls_add_vht_oper(struct mwifiex_private *priv,
u8 *mac, struct sk_buff *skb) const u8 *mac, struct sk_buff *skb)
{ {
struct mwifiex_bssdescriptor *bss_desc; struct mwifiex_bssdescriptor *bss_desc;
struct ieee80211_vht_operation *vht_oper; struct ieee80211_vht_operation *vht_oper;
...@@ -325,7 +326,8 @@ static void mwifiex_tdls_add_qos_capab(struct sk_buff *skb) ...@@ -325,7 +326,8 @@ static void mwifiex_tdls_add_qos_capab(struct sk_buff *skb)
} }
static int mwifiex_prep_tdls_encap_data(struct mwifiex_private *priv, static int mwifiex_prep_tdls_encap_data(struct mwifiex_private *priv,
u8 *peer, u8 action_code, u8 dialog_token, const u8 *peer, u8 action_code,
u8 dialog_token,
u16 status_code, struct sk_buff *skb) u16 status_code, struct sk_buff *skb)
{ {
struct ieee80211_tdls_data *tf; struct ieee80211_tdls_data *tf;
...@@ -453,7 +455,8 @@ static int mwifiex_prep_tdls_encap_data(struct mwifiex_private *priv, ...@@ -453,7 +455,8 @@ static int mwifiex_prep_tdls_encap_data(struct mwifiex_private *priv,
} }
static void static void
mwifiex_tdls_add_link_ie(struct sk_buff *skb, u8 *src_addr, u8 *peer, u8 *bssid) mwifiex_tdls_add_link_ie(struct sk_buff *skb, const u8 *src_addr,
const u8 *peer, const u8 *bssid)
{ {
struct ieee80211_tdls_lnkie *lnkid; struct ieee80211_tdls_lnkie *lnkid;
...@@ -467,8 +470,8 @@ mwifiex_tdls_add_link_ie(struct sk_buff *skb, u8 *src_addr, u8 *peer, u8 *bssid) ...@@ -467,8 +470,8 @@ mwifiex_tdls_add_link_ie(struct sk_buff *skb, u8 *src_addr, u8 *peer, u8 *bssid)
memcpy(lnkid->resp_sta, peer, ETH_ALEN); memcpy(lnkid->resp_sta, peer, ETH_ALEN);
} }
int mwifiex_send_tdls_data_frame(struct mwifiex_private *priv, int mwifiex_send_tdls_data_frame(struct mwifiex_private *priv, const u8 *peer,
u8 *peer, u8 action_code, u8 dialog_token, u8 action_code, u8 dialog_token,
u16 status_code, const u8 *extra_ies, u16 status_code, const u8 *extra_ies,
size_t extra_ies_len) size_t extra_ies_len)
{ {
...@@ -560,7 +563,8 @@ int mwifiex_send_tdls_data_frame(struct mwifiex_private *priv, ...@@ -560,7 +563,8 @@ int mwifiex_send_tdls_data_frame(struct mwifiex_private *priv,
} }
static int static int
mwifiex_construct_tdls_action_frame(struct mwifiex_private *priv, u8 *peer, mwifiex_construct_tdls_action_frame(struct mwifiex_private *priv,
const u8 *peer,
u8 action_code, u8 dialog_token, u8 action_code, u8 dialog_token,
u16 status_code, struct sk_buff *skb) u16 status_code, struct sk_buff *skb)
{ {
...@@ -638,8 +642,8 @@ mwifiex_construct_tdls_action_frame(struct mwifiex_private *priv, u8 *peer, ...@@ -638,8 +642,8 @@ mwifiex_construct_tdls_action_frame(struct mwifiex_private *priv, u8 *peer,
return 0; return 0;
} }
int mwifiex_send_tdls_action_frame(struct mwifiex_private *priv, int mwifiex_send_tdls_action_frame(struct mwifiex_private *priv, const u8 *peer,
u8 *peer, u8 action_code, u8 dialog_token, u8 action_code, u8 dialog_token,
u16 status_code, const u8 *extra_ies, u16 status_code, const u8 *extra_ies,
size_t extra_ies_len) size_t extra_ies_len)
{ {
...@@ -848,7 +852,7 @@ void mwifiex_process_tdls_action_frame(struct mwifiex_private *priv, ...@@ -848,7 +852,7 @@ void mwifiex_process_tdls_action_frame(struct mwifiex_private *priv,
} }
static int static int
mwifiex_tdls_process_config_link(struct mwifiex_private *priv, u8 *peer) mwifiex_tdls_process_config_link(struct mwifiex_private *priv, const u8 *peer)
{ {
struct mwifiex_sta_node *sta_ptr; struct mwifiex_sta_node *sta_ptr;
struct mwifiex_ds_tdls_oper tdls_oper; struct mwifiex_ds_tdls_oper tdls_oper;
...@@ -869,7 +873,7 @@ mwifiex_tdls_process_config_link(struct mwifiex_private *priv, u8 *peer) ...@@ -869,7 +873,7 @@ mwifiex_tdls_process_config_link(struct mwifiex_private *priv, u8 *peer)
} }
static int static int
mwifiex_tdls_process_create_link(struct mwifiex_private *priv, u8 *peer) mwifiex_tdls_process_create_link(struct mwifiex_private *priv, const u8 *peer)
{ {
struct mwifiex_sta_node *sta_ptr; struct mwifiex_sta_node *sta_ptr;
struct mwifiex_ds_tdls_oper tdls_oper; struct mwifiex_ds_tdls_oper tdls_oper;
...@@ -896,7 +900,7 @@ mwifiex_tdls_process_create_link(struct mwifiex_private *priv, u8 *peer) ...@@ -896,7 +900,7 @@ mwifiex_tdls_process_create_link(struct mwifiex_private *priv, u8 *peer)
} }
static int static int
mwifiex_tdls_process_disable_link(struct mwifiex_private *priv, u8 *peer) mwifiex_tdls_process_disable_link(struct mwifiex_private *priv, const u8 *peer)
{ {
struct mwifiex_sta_node *sta_ptr; struct mwifiex_sta_node *sta_ptr;
struct mwifiex_ds_tdls_oper tdls_oper; struct mwifiex_ds_tdls_oper tdls_oper;
...@@ -925,7 +929,7 @@ mwifiex_tdls_process_disable_link(struct mwifiex_private *priv, u8 *peer) ...@@ -925,7 +929,7 @@ mwifiex_tdls_process_disable_link(struct mwifiex_private *priv, u8 *peer)
} }
static int static int
mwifiex_tdls_process_enable_link(struct mwifiex_private *priv, u8 *peer) mwifiex_tdls_process_enable_link(struct mwifiex_private *priv, const u8 *peer)
{ {
struct mwifiex_sta_node *sta_ptr; struct mwifiex_sta_node *sta_ptr;
struct ieee80211_mcs_info mcs; struct ieee80211_mcs_info mcs;
...@@ -982,7 +986,7 @@ mwifiex_tdls_process_enable_link(struct mwifiex_private *priv, u8 *peer) ...@@ -982,7 +986,7 @@ mwifiex_tdls_process_enable_link(struct mwifiex_private *priv, u8 *peer)
return 0; return 0;
} }
int mwifiex_tdls_oper(struct mwifiex_private *priv, u8 *peer, u8 action) int mwifiex_tdls_oper(struct mwifiex_private *priv, const u8 *peer, u8 action)
{ {
switch (action) { switch (action) {
case MWIFIEX_TDLS_ENABLE_LINK: case MWIFIEX_TDLS_ENABLE_LINK:
...@@ -997,7 +1001,7 @@ int mwifiex_tdls_oper(struct mwifiex_private *priv, u8 *peer, u8 action) ...@@ -997,7 +1001,7 @@ int mwifiex_tdls_oper(struct mwifiex_private *priv, u8 *peer, u8 action)
return 0; return 0;
} }
int mwifiex_get_tdls_link_status(struct mwifiex_private *priv, u8 *mac) int mwifiex_get_tdls_link_status(struct mwifiex_private *priv, const u8 *mac)
{ {
struct mwifiex_sta_node *sta_ptr; struct mwifiex_sta_node *sta_ptr;
......
...@@ -259,7 +259,7 @@ int mwifiex_complete_cmd(struct mwifiex_adapter *adapter, ...@@ -259,7 +259,7 @@ int mwifiex_complete_cmd(struct mwifiex_adapter *adapter,
* NULL is returned if station entry is not found in associated STA list. * NULL is returned if station entry is not found in associated STA list.
*/ */
struct mwifiex_sta_node * struct mwifiex_sta_node *
mwifiex_get_sta_entry(struct mwifiex_private *priv, u8 *mac) mwifiex_get_sta_entry(struct mwifiex_private *priv, const u8 *mac)
{ {
struct mwifiex_sta_node *node; struct mwifiex_sta_node *node;
...@@ -280,7 +280,7 @@ mwifiex_get_sta_entry(struct mwifiex_private *priv, u8 *mac) ...@@ -280,7 +280,7 @@ mwifiex_get_sta_entry(struct mwifiex_private *priv, u8 *mac)
* If received mac address is NULL, NULL is returned. * If received mac address is NULL, NULL is returned.
*/ */
struct mwifiex_sta_node * struct mwifiex_sta_node *
mwifiex_add_sta_entry(struct mwifiex_private *priv, u8 *mac) mwifiex_add_sta_entry(struct mwifiex_private *priv, const u8 *mac)
{ {
struct mwifiex_sta_node *node; struct mwifiex_sta_node *node;
unsigned long flags; unsigned long flags;
...@@ -332,7 +332,7 @@ mwifiex_set_sta_ht_cap(struct mwifiex_private *priv, const u8 *ies, ...@@ -332,7 +332,7 @@ mwifiex_set_sta_ht_cap(struct mwifiex_private *priv, const u8 *ies,
} }
/* This function will delete a station entry from station list */ /* This function will delete a station entry from station list */
void mwifiex_del_sta_entry(struct mwifiex_private *priv, u8 *mac) void mwifiex_del_sta_entry(struct mwifiex_private *priv, const u8 *mac)
{ {
struct mwifiex_sta_node *node; struct mwifiex_sta_node *node;
unsigned long flags; unsigned long flags;
......
...@@ -92,7 +92,7 @@ mwifiex_wmm_ac_debug_print(const struct ieee_types_wmm_ac_parameters *ac_param) ...@@ -92,7 +92,7 @@ mwifiex_wmm_ac_debug_print(const struct ieee_types_wmm_ac_parameters *ac_param)
* The function also initializes the list with the provided RA. * The function also initializes the list with the provided RA.
*/ */
static struct mwifiex_ra_list_tbl * static struct mwifiex_ra_list_tbl *
mwifiex_wmm_allocate_ralist_node(struct mwifiex_adapter *adapter, u8 *ra) mwifiex_wmm_allocate_ralist_node(struct mwifiex_adapter *adapter, const u8 *ra)
{ {
struct mwifiex_ra_list_tbl *ra_list; struct mwifiex_ra_list_tbl *ra_list;
...@@ -139,8 +139,7 @@ static u8 mwifiex_get_random_ba_threshold(void) ...@@ -139,8 +139,7 @@ static u8 mwifiex_get_random_ba_threshold(void)
* This function allocates and adds a RA list for all TIDs * This function allocates and adds a RA list for all TIDs
* with the given RA. * with the given RA.
*/ */
void void mwifiex_ralist_add(struct mwifiex_private *priv, const u8 *ra)
mwifiex_ralist_add(struct mwifiex_private *priv, u8 *ra)
{ {
int i; int i;
struct mwifiex_ra_list_tbl *ra_list; struct mwifiex_ra_list_tbl *ra_list;
...@@ -575,7 +574,7 @@ mwifiex_clean_txrx(struct mwifiex_private *priv) ...@@ -575,7 +574,7 @@ mwifiex_clean_txrx(struct mwifiex_private *priv)
*/ */
static struct mwifiex_ra_list_tbl * static struct mwifiex_ra_list_tbl *
mwifiex_wmm_get_ralist_node(struct mwifiex_private *priv, u8 tid, mwifiex_wmm_get_ralist_node(struct mwifiex_private *priv, u8 tid,
u8 *ra_addr) const u8 *ra_addr)
{ {
struct mwifiex_ra_list_tbl *ra_list; struct mwifiex_ra_list_tbl *ra_list;
...@@ -596,7 +595,8 @@ mwifiex_wmm_get_ralist_node(struct mwifiex_private *priv, u8 tid, ...@@ -596,7 +595,8 @@ mwifiex_wmm_get_ralist_node(struct mwifiex_private *priv, u8 tid,
* retrieved. * retrieved.
*/ */
struct mwifiex_ra_list_tbl * struct mwifiex_ra_list_tbl *
mwifiex_wmm_get_queue_raptr(struct mwifiex_private *priv, u8 tid, u8 *ra_addr) mwifiex_wmm_get_queue_raptr(struct mwifiex_private *priv, u8 tid,
const u8 *ra_addr)
{ {
struct mwifiex_ra_list_tbl *ra_list; struct mwifiex_ra_list_tbl *ra_list;
......
...@@ -99,7 +99,7 @@ mwifiex_wmm_is_ra_list_empty(struct list_head *ra_list_hhead) ...@@ -99,7 +99,7 @@ mwifiex_wmm_is_ra_list_empty(struct list_head *ra_list_hhead)
void mwifiex_wmm_add_buf_txqueue(struct mwifiex_private *priv, void mwifiex_wmm_add_buf_txqueue(struct mwifiex_private *priv,
struct sk_buff *skb); struct sk_buff *skb);
void mwifiex_ralist_add(struct mwifiex_private *priv, u8 *ra); void mwifiex_ralist_add(struct mwifiex_private *priv, const u8 *ra);
void mwifiex_rotate_priolists(struct mwifiex_private *priv, void mwifiex_rotate_priolists(struct mwifiex_private *priv,
struct mwifiex_ra_list_tbl *ra, int tid); struct mwifiex_ra_list_tbl *ra, int tid);
...@@ -123,7 +123,8 @@ void mwifiex_wmm_setup_ac_downgrade(struct mwifiex_private *priv); ...@@ -123,7 +123,8 @@ void mwifiex_wmm_setup_ac_downgrade(struct mwifiex_private *priv);
int mwifiex_ret_wmm_get_status(struct mwifiex_private *priv, int mwifiex_ret_wmm_get_status(struct mwifiex_private *priv,
const struct host_cmd_ds_command *resp); const struct host_cmd_ds_command *resp);
struct mwifiex_ra_list_tbl * struct mwifiex_ra_list_tbl *
mwifiex_wmm_get_queue_raptr(struct mwifiex_private *priv, u8 tid, u8 *ra_addr); mwifiex_wmm_get_queue_raptr(struct mwifiex_private *priv, u8 tid,
const u8 *ra_addr);
u8 mwifiex_wmm_downgrade_tid(struct mwifiex_private *priv, u32 tid); u8 mwifiex_wmm_downgrade_tid(struct mwifiex_private *priv, u32 tid);
#endif /* !_MWIFIEX_WMM_H_ */ #endif /* !_MWIFIEX_WMM_H_ */
...@@ -517,7 +517,7 @@ static int rndis_set_default_key(struct wiphy *wiphy, struct net_device *netdev, ...@@ -517,7 +517,7 @@ static int rndis_set_default_key(struct wiphy *wiphy, struct net_device *netdev,
u8 key_index, bool unicast, bool multicast); u8 key_index, bool unicast, bool multicast);
static int rndis_get_station(struct wiphy *wiphy, struct net_device *dev, static int rndis_get_station(struct wiphy *wiphy, struct net_device *dev,
u8 *mac, struct station_info *sinfo); const u8 *mac, struct station_info *sinfo);
static int rndis_dump_station(struct wiphy *wiphy, struct net_device *dev, static int rndis_dump_station(struct wiphy *wiphy, struct net_device *dev,
int idx, u8 *mac, struct station_info *sinfo); int idx, u8 *mac, struct station_info *sinfo);
...@@ -2490,7 +2490,7 @@ static void rndis_fill_station_info(struct usbnet *usbdev, ...@@ -2490,7 +2490,7 @@ static void rndis_fill_station_info(struct usbnet *usbdev,
} }
static int rndis_get_station(struct wiphy *wiphy, struct net_device *dev, static int rndis_get_station(struct wiphy *wiphy, struct net_device *dev,
u8 *mac, struct station_info *sinfo) const u8 *mac, struct station_info *sinfo)
{ {
struct rndis_wlan_private *priv = wiphy_priv(wiphy); struct rndis_wlan_private *priv = wiphy_priv(wiphy);
struct usbnet *usbdev = priv->usbdev; struct usbnet *usbdev = priv->usbdev;
......
...@@ -298,7 +298,7 @@ static int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev, ...@@ -298,7 +298,7 @@ static int prism2_set_default_key(struct wiphy *wiphy, struct net_device *dev,
static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev, static int prism2_get_station(struct wiphy *wiphy, struct net_device *dev,
u8 *mac, struct station_info *sinfo) const u8 *mac, struct station_info *sinfo)
{ {
wlandevice_t *wlandev = dev->ml_priv; wlandevice_t *wlandev = dev->ml_priv;
struct p80211msg_lnxreq_commsquality quality; struct p80211msg_lnxreq_commsquality quality;
......
...@@ -2345,25 +2345,26 @@ struct cfg80211_ops { ...@@ -2345,25 +2345,26 @@ struct cfg80211_ops {
int (*add_station)(struct wiphy *wiphy, struct net_device *dev, int (*add_station)(struct wiphy *wiphy, struct net_device *dev,
u8 *mac, struct station_parameters *params); const u8 *mac,
struct station_parameters *params);
int (*del_station)(struct wiphy *wiphy, struct net_device *dev, int (*del_station)(struct wiphy *wiphy, struct net_device *dev,
u8 *mac); const u8 *mac);
int (*change_station)(struct wiphy *wiphy, struct net_device *dev, int (*change_station)(struct wiphy *wiphy, struct net_device *dev,
u8 *mac, struct station_parameters *params); const u8 *mac,
struct station_parameters *params);
int (*get_station)(struct wiphy *wiphy, struct net_device *dev, int (*get_station)(struct wiphy *wiphy, struct net_device *dev,
u8 *mac, struct station_info *sinfo); const u8 *mac, struct station_info *sinfo);
int (*dump_station)(struct wiphy *wiphy, struct net_device *dev, int (*dump_station)(struct wiphy *wiphy, struct net_device *dev,
int idx, u8 *mac, struct station_info *sinfo); int idx, u8 *mac, struct station_info *sinfo);
int (*add_mpath)(struct wiphy *wiphy, struct net_device *dev, int (*add_mpath)(struct wiphy *wiphy, struct net_device *dev,
u8 *dst, u8 *next_hop); const u8 *dst, const u8 *next_hop);
int (*del_mpath)(struct wiphy *wiphy, struct net_device *dev, int (*del_mpath)(struct wiphy *wiphy, struct net_device *dev,
u8 *dst); const u8 *dst);
int (*change_mpath)(struct wiphy *wiphy, struct net_device *dev, int (*change_mpath)(struct wiphy *wiphy, struct net_device *dev,
u8 *dst, u8 *next_hop); const u8 *dst, const u8 *next_hop);
int (*get_mpath)(struct wiphy *wiphy, struct net_device *dev, int (*get_mpath)(struct wiphy *wiphy, struct net_device *dev,
u8 *dst, u8 *next_hop, u8 *dst, u8 *next_hop, struct mpath_info *pinfo);
struct mpath_info *pinfo);
int (*dump_mpath)(struct wiphy *wiphy, struct net_device *dev, int (*dump_mpath)(struct wiphy *wiphy, struct net_device *dev,
int idx, u8 *dst, u8 *next_hop, int idx, u8 *dst, u8 *next_hop,
struct mpath_info *pinfo); struct mpath_info *pinfo);
...@@ -2496,11 +2497,11 @@ struct cfg80211_ops { ...@@ -2496,11 +2497,11 @@ struct cfg80211_ops {
struct cfg80211_gtk_rekey_data *data); struct cfg80211_gtk_rekey_data *data);
int (*tdls_mgmt)(struct wiphy *wiphy, struct net_device *dev, int (*tdls_mgmt)(struct wiphy *wiphy, struct net_device *dev,
u8 *peer, u8 action_code, u8 dialog_token, const u8 *peer, u8 action_code, u8 dialog_token,
u16 status_code, u32 peer_capability, u16 status_code, u32 peer_capability,
const u8 *buf, size_t len); const u8 *buf, size_t len);
int (*tdls_oper)(struct wiphy *wiphy, struct net_device *dev, int (*tdls_oper)(struct wiphy *wiphy, struct net_device *dev,
u8 *peer, enum nl80211_tdls_operation oper); const u8 *peer, enum nl80211_tdls_operation oper);
int (*probe_client)(struct wiphy *wiphy, struct net_device *dev, int (*probe_client)(struct wiphy *wiphy, struct net_device *dev,
const u8 *peer, u64 *cookie); const u8 *peer, u64 *cookie);
......
...@@ -807,7 +807,7 @@ static int ieee80211_dump_survey(struct wiphy *wiphy, struct net_device *dev, ...@@ -807,7 +807,7 @@ static int ieee80211_dump_survey(struct wiphy *wiphy, struct net_device *dev,
} }
static int ieee80211_get_station(struct wiphy *wiphy, struct net_device *dev, static int ieee80211_get_station(struct wiphy *wiphy, struct net_device *dev,
u8 *mac, struct station_info *sinfo) const u8 *mac, struct station_info *sinfo)
{ {
struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
struct ieee80211_local *local = sdata->local; struct ieee80211_local *local = sdata->local;
...@@ -1457,7 +1457,8 @@ static int sta_apply_parameters(struct ieee80211_local *local, ...@@ -1457,7 +1457,8 @@ static int sta_apply_parameters(struct ieee80211_local *local,
} }
static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev, static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev,
u8 *mac, struct station_parameters *params) const u8 *mac,
struct station_parameters *params)
{ {
struct ieee80211_local *local = wiphy_priv(wiphy); struct ieee80211_local *local = wiphy_priv(wiphy);
struct sta_info *sta; struct sta_info *sta;
...@@ -1526,7 +1527,7 @@ static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev, ...@@ -1526,7 +1527,7 @@ static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev,
} }
static int ieee80211_del_station(struct wiphy *wiphy, struct net_device *dev, static int ieee80211_del_station(struct wiphy *wiphy, struct net_device *dev,
u8 *mac) const u8 *mac)
{ {
struct ieee80211_sub_if_data *sdata; struct ieee80211_sub_if_data *sdata;
...@@ -1540,7 +1541,7 @@ static int ieee80211_del_station(struct wiphy *wiphy, struct net_device *dev, ...@@ -1540,7 +1541,7 @@ static int ieee80211_del_station(struct wiphy *wiphy, struct net_device *dev,
} }
static int ieee80211_change_station(struct wiphy *wiphy, static int ieee80211_change_station(struct wiphy *wiphy,
struct net_device *dev, u8 *mac, struct net_device *dev, const u8 *mac,
struct station_parameters *params) struct station_parameters *params)
{ {
struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
...@@ -1665,7 +1666,7 @@ static int ieee80211_change_station(struct wiphy *wiphy, ...@@ -1665,7 +1666,7 @@ static int ieee80211_change_station(struct wiphy *wiphy,
#ifdef CONFIG_MAC80211_MESH #ifdef CONFIG_MAC80211_MESH
static int ieee80211_add_mpath(struct wiphy *wiphy, struct net_device *dev, static int ieee80211_add_mpath(struct wiphy *wiphy, struct net_device *dev,
u8 *dst, u8 *next_hop) const u8 *dst, const u8 *next_hop)
{ {
struct ieee80211_sub_if_data *sdata; struct ieee80211_sub_if_data *sdata;
struct mesh_path *mpath; struct mesh_path *mpath;
...@@ -1693,7 +1694,7 @@ static int ieee80211_add_mpath(struct wiphy *wiphy, struct net_device *dev, ...@@ -1693,7 +1694,7 @@ static int ieee80211_add_mpath(struct wiphy *wiphy, struct net_device *dev,
} }
static int ieee80211_del_mpath(struct wiphy *wiphy, struct net_device *dev, static int ieee80211_del_mpath(struct wiphy *wiphy, struct net_device *dev,
u8 *dst) const u8 *dst)
{ {
struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
...@@ -1704,9 +1705,8 @@ static int ieee80211_del_mpath(struct wiphy *wiphy, struct net_device *dev, ...@@ -1704,9 +1705,8 @@ static int ieee80211_del_mpath(struct wiphy *wiphy, struct net_device *dev,
return 0; return 0;
} }
static int ieee80211_change_mpath(struct wiphy *wiphy, static int ieee80211_change_mpath(struct wiphy *wiphy, struct net_device *dev,
struct net_device *dev, const u8 *dst, const u8 *next_hop)
u8 *dst, u8 *next_hop)
{ {
struct ieee80211_sub_if_data *sdata; struct ieee80211_sub_if_data *sdata;
struct mesh_path *mpath; struct mesh_path *mpath;
......
...@@ -1839,11 +1839,11 @@ int ieee80211_max_num_channels(struct ieee80211_local *local); ...@@ -1839,11 +1839,11 @@ int ieee80211_max_num_channels(struct ieee80211_local *local);
/* TDLS */ /* TDLS */
int ieee80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev, int ieee80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev,
u8 *peer, u8 action_code, u8 dialog_token, const u8 *peer, u8 action_code, u8 dialog_token,
u16 status_code, u32 peer_capability, u16 status_code, u32 peer_capability,
const u8 *extra_ies, size_t extra_ies_len); const u8 *extra_ies, size_t extra_ies_len);
int ieee80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev, int ieee80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev,
u8 *peer, enum nl80211_tdls_operation oper); const u8 *peer, enum nl80211_tdls_operation oper);
#ifdef CONFIG_MAC80211_NOINLINE #ifdef CONFIG_MAC80211_NOINLINE
......
...@@ -40,8 +40,8 @@ static u16 ieee80211_get_tdls_sta_capab(struct ieee80211_sub_if_data *sdata) ...@@ -40,8 +40,8 @@ static u16 ieee80211_get_tdls_sta_capab(struct ieee80211_sub_if_data *sdata)
return capab; return capab;
} }
static void ieee80211_tdls_add_link_ie(struct sk_buff *skb, u8 *src_addr, static void ieee80211_tdls_add_link_ie(struct sk_buff *skb, const u8 *src_addr,
u8 *peer, u8 *bssid) const u8 *peer, const u8 *bssid)
{ {
struct ieee80211_tdls_lnkie *lnkid; struct ieee80211_tdls_lnkie *lnkid;
...@@ -57,7 +57,7 @@ static void ieee80211_tdls_add_link_ie(struct sk_buff *skb, u8 *src_addr, ...@@ -57,7 +57,7 @@ static void ieee80211_tdls_add_link_ie(struct sk_buff *skb, u8 *src_addr,
static int static int
ieee80211_prep_tdls_encap_data(struct wiphy *wiphy, struct net_device *dev, ieee80211_prep_tdls_encap_data(struct wiphy *wiphy, struct net_device *dev,
u8 *peer, u8 action_code, u8 dialog_token, const u8 *peer, u8 action_code, u8 dialog_token,
u16 status_code, struct sk_buff *skb) u16 status_code, struct sk_buff *skb)
{ {
struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
...@@ -130,7 +130,7 @@ ieee80211_prep_tdls_encap_data(struct wiphy *wiphy, struct net_device *dev, ...@@ -130,7 +130,7 @@ ieee80211_prep_tdls_encap_data(struct wiphy *wiphy, struct net_device *dev,
static int static int
ieee80211_prep_tdls_direct(struct wiphy *wiphy, struct net_device *dev, ieee80211_prep_tdls_direct(struct wiphy *wiphy, struct net_device *dev,
u8 *peer, u8 action_code, u8 dialog_token, const u8 *peer, u8 action_code, u8 dialog_token,
u16 status_code, struct sk_buff *skb) u16 status_code, struct sk_buff *skb)
{ {
struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
...@@ -169,7 +169,7 @@ ieee80211_prep_tdls_direct(struct wiphy *wiphy, struct net_device *dev, ...@@ -169,7 +169,7 @@ ieee80211_prep_tdls_direct(struct wiphy *wiphy, struct net_device *dev,
} }
int ieee80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev, int ieee80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev,
u8 *peer, u8 action_code, u8 dialog_token, const u8 *peer, u8 action_code, u8 dialog_token,
u16 status_code, u32 peer_capability, u16 status_code, u32 peer_capability,
const u8 *extra_ies, size_t extra_ies_len) const u8 *extra_ies, size_t extra_ies_len)
{ {
...@@ -285,7 +285,7 @@ int ieee80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev, ...@@ -285,7 +285,7 @@ int ieee80211_tdls_mgmt(struct wiphy *wiphy, struct net_device *dev,
} }
int ieee80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev, int ieee80211_tdls_oper(struct wiphy *wiphy, struct net_device *dev,
u8 *peer, enum nl80211_tdls_operation oper) const u8 *peer, enum nl80211_tdls_operation oper)
{ {
struct sta_info *sta; struct sta_info *sta;
struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment