diff options
author | Jouni Malinen <jouni@qca.qualcomm.com> | 2014-10-10 21:52:40 +0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-10-20 18:24:21 +0400 |
commit | 89c771e5a62b856f4705f189892c489190edaec1 (patch) | |
tree | 79c6ced4c94b55bec6b6ec21808e42cc3b21f748 /net/mac80211 | |
parent | 2a84ee8625953fbce38b541aed77344044688a3e (diff) | |
download | linux-89c771e5a62b856f4705f189892c489190edaec1.tar.xz |
cfg80211: Convert del_station() callback to use a param struct
This makes it easier to add new parameters for the del_station calls
without having to modify all drivers that use this.
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/cfg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index 4bb2d34b2dd7..a1498416ad55 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1225,14 +1225,14 @@ static int ieee80211_add_station(struct wiphy *wiphy, struct net_device *dev, } static int ieee80211_del_station(struct wiphy *wiphy, struct net_device *dev, - const u8 *mac) + struct station_del_parameters *params) { struct ieee80211_sub_if_data *sdata; sdata = IEEE80211_DEV_TO_SUB_IF(dev); - if (mac) - return sta_info_destroy_addr_bss(sdata, mac); + if (params->mac) + return sta_info_destroy_addr_bss(sdata, params->mac); sta_info_flush(sdata); return 0; |