diff options
| author | Jouni Malinen <jouni@qca.qualcomm.com> | 2014-10-10 13:52:40 -0400 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2014-10-20 10:24:21 -0400 |
| commit | 89c771e5a62b856f4705f189892c489190edaec1 (patch) | |
| tree | 79c6ced4c94b55bec6b6ec21808e42cc3b21f748 /net/mac80211/cfg.c | |
| parent | 2a84ee8625953fbce38b541aed77344044688a3e (diff) | |
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/cfg.c')
| -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, | |||
| 1225 | } | 1225 | } |
| 1226 | 1226 | ||
| 1227 | static int ieee80211_del_station(struct wiphy *wiphy, struct net_device *dev, | 1227 | static int ieee80211_del_station(struct wiphy *wiphy, struct net_device *dev, |
| 1228 | const u8 *mac) | 1228 | struct station_del_parameters *params) |
| 1229 | { | 1229 | { |
| 1230 | struct ieee80211_sub_if_data *sdata; | 1230 | struct ieee80211_sub_if_data *sdata; |
| 1231 | 1231 | ||
| 1232 | sdata = IEEE80211_DEV_TO_SUB_IF(dev); | 1232 | sdata = IEEE80211_DEV_TO_SUB_IF(dev); |
| 1233 | 1233 | ||
| 1234 | if (mac) | 1234 | if (params->mac) |
| 1235 | return sta_info_destroy_addr_bss(sdata, mac); | 1235 | return sta_info_destroy_addr_bss(sdata, params->mac); |
| 1236 | 1236 | ||
| 1237 | sta_info_flush(sdata); | 1237 | sta_info_flush(sdata); |
| 1238 | return 0; | 1238 | return 0; |
