diff options
Diffstat (limited to 'net/mac80211/driver-ops.h')
-rw-r--r-- | net/mac80211/driver-ops.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index 5d03c47c0a4c..ef8b385eff04 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h | |||
@@ -242,22 +242,6 @@ static inline u64 drv_prepare_multicast(struct ieee80211_local *local, | |||
242 | return ret; | 242 | return ret; |
243 | } | 243 | } |
244 | 244 | ||
245 | static inline void drv_set_multicast_list(struct ieee80211_local *local, | ||
246 | struct ieee80211_sub_if_data *sdata, | ||
247 | struct netdev_hw_addr_list *mc_list) | ||
248 | { | ||
249 | bool allmulti = sdata->flags & IEEE80211_SDATA_ALLMULTI; | ||
250 | |||
251 | trace_drv_set_multicast_list(local, sdata, mc_list->count); | ||
252 | |||
253 | check_sdata_in_driver(sdata); | ||
254 | |||
255 | if (local->ops->set_multicast_list) | ||
256 | local->ops->set_multicast_list(&local->hw, &sdata->vif, | ||
257 | allmulti, mc_list); | ||
258 | trace_drv_return_void(local); | ||
259 | } | ||
260 | |||
261 | static inline void drv_configure_filter(struct ieee80211_local *local, | 245 | static inline void drv_configure_filter(struct ieee80211_local *local, |
262 | unsigned int changed_flags, | 246 | unsigned int changed_flags, |
263 | unsigned int *total_flags, | 247 | unsigned int *total_flags, |
@@ -550,6 +534,22 @@ static inline void drv_sta_remove_debugfs(struct ieee80211_local *local, | |||
550 | } | 534 | } |
551 | #endif | 535 | #endif |
552 | 536 | ||
537 | static inline void drv_sta_pre_rcu_remove(struct ieee80211_local *local, | ||
538 | struct ieee80211_sub_if_data *sdata, | ||
539 | struct sta_info *sta) | ||
540 | { | ||
541 | might_sleep(); | ||
542 | |||
543 | sdata = get_bss_sdata(sdata); | ||
544 | check_sdata_in_driver(sdata); | ||
545 | |||
546 | trace_drv_sta_pre_rcu_remove(local, sdata, &sta->sta); | ||
547 | if (local->ops->sta_pre_rcu_remove) | ||
548 | local->ops->sta_pre_rcu_remove(&local->hw, &sdata->vif, | ||
549 | &sta->sta); | ||
550 | trace_drv_return_void(local); | ||
551 | } | ||
552 | |||
553 | static inline __must_check | 553 | static inline __must_check |
554 | int drv_sta_state(struct ieee80211_local *local, | 554 | int drv_sta_state(struct ieee80211_local *local, |
555 | struct ieee80211_sub_if_data *sdata, | 555 | struct ieee80211_sub_if_data *sdata, |