mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
staging: rtl8723bs: Remove unused macros in sta_info.h
Remove unused macros. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/912fba119b3041c396bcb2ddf22219fa0025ee42.1719155208.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
30b09d4bb1
commit
b368563e11
|
|
@ -222,53 +222,24 @@ struct sta_info {
|
|||
+ sta->sta_stats.rx_ctrl_pkts \
|
||||
+ sta->sta_stats.rx_data_pkts)
|
||||
|
||||
#define sta_last_rx_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_mgnt_pkts \
|
||||
+ sta->sta_stats.last_rx_ctrl_pkts \
|
||||
+ sta->sta_stats.last_rx_data_pkts)
|
||||
|
||||
#define sta_rx_data_pkts(sta) \
|
||||
(sta->sta_stats.rx_data_pkts)
|
||||
|
||||
#define sta_last_rx_data_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_data_pkts)
|
||||
|
||||
#define sta_rx_mgnt_pkts(sta) \
|
||||
(sta->sta_stats.rx_mgnt_pkts)
|
||||
|
||||
#define sta_last_rx_mgnt_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_mgnt_pkts)
|
||||
|
||||
#define sta_rx_beacon_pkts(sta) \
|
||||
(sta->sta_stats.rx_beacon_pkts)
|
||||
|
||||
#define sta_last_rx_beacon_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_beacon_pkts)
|
||||
|
||||
#define sta_rx_probereq_pkts(sta) \
|
||||
(sta->sta_stats.rx_probereq_pkts)
|
||||
|
||||
#define sta_last_rx_probereq_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_probereq_pkts)
|
||||
|
||||
#define sta_rx_probersp_pkts(sta) \
|
||||
(sta->sta_stats.rx_probersp_pkts)
|
||||
|
||||
#define sta_last_rx_probersp_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_probersp_pkts)
|
||||
|
||||
#define sta_rx_probersp_bm_pkts(sta) \
|
||||
(sta->sta_stats.rx_probersp_bm_pkts)
|
||||
|
||||
#define sta_last_rx_probersp_bm_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_probersp_bm_pkts)
|
||||
|
||||
#define sta_rx_probersp_uo_pkts(sta) \
|
||||
(sta->sta_stats.rx_probersp_uo_pkts)
|
||||
|
||||
#define sta_last_rx_probersp_uo_pkts(sta) \
|
||||
(sta->sta_stats.last_rx_probersp_uo_pkts)
|
||||
|
||||
#define sta_update_last_rx_pkts(sta) \
|
||||
do { \
|
||||
sta->sta_stats.last_rx_mgnt_pkts = sta->sta_stats.rx_mgnt_pkts; \
|
||||
|
|
@ -281,21 +252,6 @@ struct sta_info {
|
|||
sta->sta_stats.last_rx_data_pkts = sta->sta_stats.rx_data_pkts; \
|
||||
} while (0)
|
||||
|
||||
#define STA_RX_PKTS_ARG(sta) \
|
||||
sta->sta_stats.rx_mgnt_pkts \
|
||||
, sta->sta_stats.rx_ctrl_pkts \
|
||||
, sta->sta_stats.rx_data_pkts
|
||||
|
||||
#define STA_LAST_RX_PKTS_ARG(sta) \
|
||||
sta->sta_stats.last_rx_mgnt_pkts \
|
||||
, sta->sta_stats.last_rx_ctrl_pkts \
|
||||
, sta->sta_stats.last_rx_data_pkts
|
||||
|
||||
#define STA_RX_PKTS_DIFF_ARG(sta) \
|
||||
sta->sta_stats.rx_mgnt_pkts - sta->sta_stats.last_rx_mgnt_pkts \
|
||||
, sta->sta_stats.rx_ctrl_pkts - sta->sta_stats.last_rx_ctrl_pkts \
|
||||
, sta->sta_stats.rx_data_pkts - sta->sta_stats.last_rx_data_pkts
|
||||
|
||||
#define STA_PKTS_FMT "(m:%llu, c:%llu, d:%llu)"
|
||||
|
||||
struct sta_priv {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user