driver-ops.h (7ebdfaa52d15b947503f76474477f92854796d96) | driver-ops.h (2b9a7e1bac24df8ddb0713ad1e5807a7243bcab0) |
---|---|
1#ifndef __MAC80211_DRIVER_OPS 2#define __MAC80211_DRIVER_OPS 3 4#include <net/mac80211.h> 5#include "ieee80211_i.h" 6#include "trace.h" 7 8static inline bool check_sdata_in_driver(struct ieee80211_sub_if_data *sdata) --- 625 unchanged lines hidden (view full) --- 634 635 trace_drv_sta_rate_tbl_update(local, sdata, sta); 636 if (local->ops->sta_rate_tbl_update) 637 local->ops->sta_rate_tbl_update(&local->hw, &sdata->vif, sta); 638 639 trace_drv_return_void(local); 640} 641 | 1#ifndef __MAC80211_DRIVER_OPS 2#define __MAC80211_DRIVER_OPS 3 4#include <net/mac80211.h> 5#include "ieee80211_i.h" 6#include "trace.h" 7 8static inline bool check_sdata_in_driver(struct ieee80211_sub_if_data *sdata) --- 625 unchanged lines hidden (view full) --- 634 635 trace_drv_sta_rate_tbl_update(local, sdata, sta); 636 if (local->ops->sta_rate_tbl_update) 637 local->ops->sta_rate_tbl_update(&local->hw, &sdata->vif, sta); 638 639 trace_drv_return_void(local); 640} 641 |
642static inline void drv_sta_statistics(struct ieee80211_local *local, 643 struct ieee80211_sub_if_data *sdata, 644 struct ieee80211_sta *sta, 645 struct station_info *sinfo) 646{ 647 sdata = get_bss_sdata(sdata); 648 if (!check_sdata_in_driver(sdata)) 649 return; 650 651 trace_drv_sta_statistics(local, sdata, sta); 652 if (local->ops->sta_statistics) 653 local->ops->sta_statistics(&local->hw, &sdata->vif, sta, sinfo); 654 trace_drv_return_void(local); 655} 656 |
|
642static inline int drv_conf_tx(struct ieee80211_local *local, 643 struct ieee80211_sub_if_data *sdata, u16 ac, 644 const struct ieee80211_tx_queue_params *params) 645{ 646 int ret = -EOPNOTSUPP; 647 648 might_sleep(); 649 --- 311 unchanged lines hidden (view full) --- 961 reason, more_data); 962 if (local->ops->allow_buffered_frames) 963 local->ops->allow_buffered_frames(&local->hw, &sta->sta, 964 tids, num_frames, reason, 965 more_data); 966 trace_drv_return_void(local); 967} 968 | 657static inline int drv_conf_tx(struct ieee80211_local *local, 658 struct ieee80211_sub_if_data *sdata, u16 ac, 659 const struct ieee80211_tx_queue_params *params) 660{ 661 int ret = -EOPNOTSUPP; 662 663 might_sleep(); 664 --- 311 unchanged lines hidden (view full) --- 976 reason, more_data); 977 if (local->ops->allow_buffered_frames) 978 local->ops->allow_buffered_frames(&local->hw, &sta->sta, 979 tids, num_frames, reason, 980 more_data); 981 trace_drv_return_void(local); 982} 983 |
969static inline int drv_get_rssi(struct ieee80211_local *local, 970 struct ieee80211_sub_if_data *sdata, 971 struct ieee80211_sta *sta, 972 s8 *rssi_dbm) 973{ 974 int ret; 975 976 might_sleep(); 977 978 ret = local->ops->get_rssi(&local->hw, &sdata->vif, sta, rssi_dbm); 979 trace_drv_get_rssi(local, sta, *rssi_dbm, ret); 980 981 return ret; 982} 983 | |
984static inline void drv_mgd_prepare_tx(struct ieee80211_local *local, 985 struct ieee80211_sub_if_data *sdata) 986{ 987 might_sleep(); 988 989 if (!check_sdata_in_driver(sdata)) 990 return; 991 WARN_ON_ONCE(sdata->vif.type != NL80211_IFTYPE_STATION); --- 379 unchanged lines hidden --- | 984static inline void drv_mgd_prepare_tx(struct ieee80211_local *local, 985 struct ieee80211_sub_if_data *sdata) 986{ 987 might_sleep(); 988 989 if (!check_sdata_in_driver(sdata)) 990 return; 991 WARN_ON_ONCE(sdata->vif.type != NL80211_IFTYPE_STATION); --- 379 unchanged lines hidden --- |