tzh
2024-08-15 d4a1bd480003f3e1a0590bc46fbcb24f05652ca7
longan/kernel/linux-4.9/drivers/net/wireless/aic8800/aic8800_fdrv/rwnx_defs.h
old mode 100644new mode 100755
....@@ -126,6 +126,13 @@
126126 struct work_struct work;
127127 };
128128
129
+struct apm_probe_sta {
130
+ u8 sta_mac_addr[6];
131
+ u8 vif_idx;
132
+ u64 probe_id;
133
+ struct work_struct apmprobestaWork;
134
+ struct workqueue_struct *apmprobesta_wq;
135
+};
129136 /// Possible States of the TDLS link.
130137 enum tdls_status_tag {
131138 /// TDLS link is not active (no TDLS peer connected)
....@@ -229,6 +236,7 @@
229236
230237 u8_l key_has_add;
231238 u8_l is_p2p_vif;
239
+ struct apm_probe_sta sta_probe;
232240 };
233241
234242 #define RWNX_VIF_TYPE(rwnx_vif) (rwnx_vif->wdev.iftype)
....@@ -272,10 +280,8 @@
272280 * @rx_rate: Statistics of the received rates
273281 */
274282 struct rwnx_sta_stats {
275
-#ifdef CONFIG_RWNX_DEBUGFS
276283 struct hw_vect last_rx;
277284 struct rwnx_rx_rate_stats rx_rate;
278
-#endif
279285 };
280286
281287 /*
....@@ -406,6 +412,24 @@
406412 bool limit_bw;
407413 };
408414
415
+
416
+struct defrag_ctrl_info {
417
+ struct list_head list;
418
+ u8 sta_idx;
419
+ u8 tid;
420
+ u16 sn;
421
+ u8 next_fn;
422
+ u16 frm_len;
423
+ struct sk_buff *skb;
424
+ struct timer_list defrag_timer;
425
+};
426
+
427
+struct amsdu_subframe_hdr {
428
+ u8 da[6];
429
+ u8 sa[6];
430
+ u16 sublen;
431
+};
432
+
409433 struct rwnx_hw {
410434 struct rwnx_mod_params *mod_params;
411435 struct device *dev;
....@@ -490,6 +514,23 @@
490514 struct rwnx_vif *p2p_dev_vif;
491515 atomic_t p2p_alive_timer_count;
492516 bool band_5g_support;
517
+ u8_l vendor_info;
518
+ bool fwlog_en;
519
+
520
+ struct list_head defrag_list;
521
+ spinlock_t defrag_lock;
522
+
523
+ struct work_struct apmStalossWork;
524
+ struct workqueue_struct *apmStaloss_wq;
525
+ u8 apm_vif_idx;
526
+ u8 sta_mac_addr[6];
527
+
528
+ struct wakeup_source *ws_rx;
529
+ struct wakeup_source *ws_tx;
530
+ struct wakeup_source *ws_pwrctrl;
531
+
532
+ u8 wakeup_enable;
533
+ u32 hostwake_irq_num;
493534 };
494535
495536 u8 *rwnx_build_bcn(struct rwnx_bcn *bcn, struct cfg80211_beacon_data *new);
....@@ -512,11 +553,6 @@
512553 } else {
513554 return vif->vif_index;
514555 }
515
-}
516
-
517
-static inline void *rwnx_get_shared_trace_buf(struct rwnx_hw *rwnx_hw)
518
-{
519
- return (void *)&(rwnx_hw->debugfs.fw_trace.buf);
520556 }
521557
522558 void rwnx_external_auth_enable(struct rwnx_vif *vif);