From d4a1bd480003f3e1a0590bc46fbcb24f05652ca7 Mon Sep 17 00:00:00 2001
From: tzh <tanzhtanzh@gmail.com>
Date: Thu, 15 Aug 2024 06:56:47 +0000
Subject: [PATCH] feat(wfit/bt): update aic8800 wifi/bt drive and hal

---
 longan/kernel/linux-4.9/drivers/net/wireless/aic8800/aic8800_fdrv/rwnx_txq.h |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)

diff --git a/longan/kernel/linux-4.9/drivers/net/wireless/aic8800/aic8800_fdrv/rwnx_txq.h b/longan/kernel/linux-4.9/drivers/net/wireless/aic8800/aic8800_fdrv/rwnx_txq.h
old mode 100644
new mode 100755
index 66b4482..0b2e236
--- a/longan/kernel/linux-4.9/drivers/net/wireless/aic8800/aic8800_fdrv/rwnx_txq.h
+++ b/longan/kernel/linux-4.9/drivers/net/wireless/aic8800/aic8800_fdrv/rwnx_txq.h
@@ -116,7 +116,6 @@
  */
 struct rwnx_hwq {
 	struct list_head list;
-	u8 credits[CONFIG_USER_MAX];
 	u8 size;
 	u8 id;
 	bool need_processing;
@@ -257,25 +256,6 @@
 static inline bool rwnx_txq_is_scheduled(struct rwnx_txq *txq)
 {
 	return (txq->status & RWNX_TXQ_IN_HWQ_LIST);
-}
-
-/**
- * rwnx_txq_is_ready_for_push - Check if a TXQ is ready for push
- *
- * @txq: txq pointer
- *
- * if
- * - txq is not stopped
- * - and hwq has credits
- * - and there is no buffer queued
- * then a buffer can be immediately pushed without having to queue it first
- * @return: true if the 3 conditions are met and false otherwise.
- */
-static inline bool rwnx_txq_is_ready_for_push(struct rwnx_txq *txq)
-{
-	return (!rwnx_txq_is_stopped(txq) &&
-			txq->hwq->credits[RWNX_TXQ_POS_ID(txq)] > 0 &&
-			skb_queue_empty(&txq->sk_list));
 }
 
 /**

--
Gitblit v1.6.2