[PATCH v2 4/9] Remove struct wcn36xx_pkt

Pontus Fuchs pontus.fuchs at gmail.com
Thu May 30 04:12:30 EDT 2013


Not used.

Signed-off-by: Pontus Fuchs <pontus.fuchs at gmail.com>
---
 dxe.c |  6 +-----
 dxe.h | 14 --------------
 2 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/dxe.c b/dxe.c
index b607b33..f89a485 100644
--- a/dxe.c
+++ b/dxe.c
@@ -50,9 +50,8 @@ static int wcn36xx_dxe_allocate_ctl_block(struct wcn36xx_dxe_ch *ch)
 		cur_ctl = kmalloc(sizeof(*cur_ctl), GFP_KERNEL);
 		if (!cur_ctl)
 			return -ENOMEM;
-		cur_ctl->frame = NULL;
-		cur_ctl->ctl_blk_order = i;
 
+		cur_ctl->ctl_blk_order = i;
 		ch->tail_blk_ctl = cur_ctl;
 		if (i == 0) {
 			ch->head_blk_ctl = cur_ctl;
@@ -433,9 +432,6 @@ int wcn36xx_dxe_tx(struct wcn36xx *wcn,
 	ctl = ch->head_blk_ctl;
 	desc = ctl->desc;
 
-	// Let's not forget the frame we are sending
-	ctl->frame = mem_pool->virt_addr;
-
 	// Set source address of the BD we send
 	desc->src_addr_l = (int)mem_pool->phy_addr;
 
diff --git a/dxe.h b/dxe.h
index 0baa16e..c17d145 100644
--- a/dxe.h
+++ b/dxe.h
@@ -157,19 +157,6 @@ enum wcn36xx_dxe_ch_desc_num {
 	WCN36XX_DXE_CH_DESC_NUMB_RX_H		= 40
 };
 
-
-// Packets
-struct wcn36xx_pkt {
-	void 	*bd;
-	void 	*bd_phy;
-	void 	*os_struct;
-	void 	*pkt_info;
-	int	pkt_type;
-	u16	len;
-	void	*int_data;
-
-};
-
 struct wcn36xx_dxe_desc
 {
 	u32	ctrl;
@@ -204,7 +191,6 @@ struct wcn36xx_dxe_desc
 // DXE Control block
 struct wcn36xx_dxe_ctl {
 	struct wcn36xx_dxe_ctl	*next;
-	struct wcn36xx_pkt	*frame;
 	struct wcn36xx_dxe_desc	*desc;
 	unsigned int		desc_phy_addr;
 	int			ctl_blk_order;
-- 
1.8.1.2




More information about the wcn36xx mailing list