forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/drivers/net/wireless/ath/ath9k/ath9k.h
....@@ -112,8 +112,6 @@
112112 #define ATH_TXFIFO_DEPTH 8
113113 #define ATH_TX_ERROR 0x01
114114
115
-#define ATH_AIRTIME_QUANTUM 300 /* usec */
116
-
117115 /* Stop tx traffic 1ms before the GO goes away */
118116 #define ATH_P2P_PS_STOP_TIME 1000
119117
....@@ -247,10 +245,8 @@
247245 s8 bar_index;
248246 bool active;
249247 bool clear_ps_filter;
250
- bool has_queued;
251248 };
252249
253
-void __ath_tx_queue_tid(struct ath_softc *sc, struct ath_atx_tid *tid);
254250 void ath_tx_queue_tid(struct ath_softc *sc, struct ath_atx_tid *tid);
255251
256252 struct ath_node {
....@@ -264,12 +260,9 @@
264260
265261 bool sleeping;
266262 bool no_ps_filter;
267
- s64 airtime_deficit[IEEE80211_NUM_ACS];
268
- u32 airtime_rx_start;
269263
270264 #ifdef CONFIG_ATH9K_STATION_STATISTICS
271265 struct ath_rx_rate_stats rx_rate_stats;
272
- struct ath_airtime_stats airtime_stats;
273266 #endif
274267 u8 key_idx[4];
275268
....@@ -721,7 +714,7 @@
721714 bool tx_last;
722715 };
723716
724
-void ath9k_beacon_tasklet(unsigned long data);
717
+void ath9k_beacon_tasklet(struct tasklet_struct *t);
725718 void ath9k_beacon_config(struct ath_softc *sc, struct ieee80211_vif *main_vif,
726719 bool beacons);
727720 void ath9k_beacon_assign_slot(struct ath_softc *sc, struct ieee80211_vif *vif);
....@@ -987,11 +980,6 @@
987980
988981 #define ATH9K_NUM_CHANCTX 2 /* supports 2 operating channels */
989982
990
-#define AIRTIME_USE_TX BIT(0)
991
-#define AIRTIME_USE_RX BIT(1)
992
-#define AIRTIME_USE_NEW_QUEUES BIT(2)
993
-#define AIRTIME_ACTIVE(flags) (!!(flags & (AIRTIME_USE_TX|AIRTIME_USE_RX)))
994
-
995983 struct ath_softc {
996984 struct ieee80211_hw *hw;
997985 struct device *dev;
....@@ -1034,8 +1022,6 @@
10341022 bool ps_idle;
10351023 short nbcnvifs;
10361024 unsigned long ps_usecount;
1037
-
1038
- u16 airtime_flags; /* AIRTIME_* */
10391025
10401026 struct ath_rx rx;
10411027 struct ath_tx tx;
....@@ -1132,7 +1118,7 @@
11321118 common->bus_ops->read_cachesize(common, csz);
11331119 }
11341120
1135
-void ath9k_tasklet(unsigned long data);
1121
+void ath9k_tasklet(struct tasklet_struct *t);
11361122 int ath_cabq_update(struct ath_softc *);
11371123 u8 ath9k_parse_mpdudensity(u8 mpdudensity);
11381124 irqreturn_t ath_isr(int irq, void *dev);