Skip to contentSkip to conversation

w35und: transmit optimalization is not neccessary for now

PATCH Pavel Machek 1 participant 1 message Apr 25, 2008 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

Remove unused code.

More junk removal.

---
commit 225d43f2a1a29a12295c5b9b9c390e7a481b116c
tree 6bdd83b69ad3036451be59c8be85bfe82c1f53be
parent 8a641ec6e230af50cb72311a49a69d76f56c4acd
author Pavel <[email protected]> Fri, 25 Apr 2008 20:08:44 +0200 committer Pavel <[email protected]> Fri, 25 Apr 2008 20:08:44 +0200

 .../net/wireless/winbond/winbondport/mlmetxrx.c    |   53 +----
 drivers/net/wireless/winbond/winbondport/mto.c     |  262 --------------------
 drivers/net/wireless/winbond/winbondport/wbhal_s.h |   60 +----
 3 files changed, 19 insertions(+), 356 deletions(-)
drivers/net/wireless/winbond/winbondport/mlmetxrx.c +12 -41
index 7dea640..04bcbaa 100644
@@ -101,8 +101,18 @@ #endif
 void
 MLME_GetNextPacket(PADAPTER Adapter, PDESCRIPTOR pDes)
 {
+#define DESCRIPTOR_ADD_BUFFER( _D, _A, _S ) \
+{\
+	_D->InternalUsed = _D->buffer_start_index + _D->buffer_number; \
+	_D->InternalUsed %= MAX_DESCRIPTOR_BUFFER_INDEX; \
+	_D->buffer_address[ _D->InternalUsed ] = _A; \
+	_D->buffer_size[ _D->InternalUsed ] = _S; \
+	_D->buffer_total_size += _S; \
+	_D->buffer_number++;\
+}
+
 	DESCRIPTOR_ADD_BUFFER( pDes, Adapter->sMlmeFrame.pMMPDU, Adapter->sMlmeFrame.len );
-	DESCRIPTOR_SET_TYPE( pDes, Adapter->sMlmeFrame.DataType );
+	pDes->Type = Adapter->sMlmeFrame.DataType;
 }
 
 void MLMEfreeMMPDUBuffer(PWB32_ADAPTER Adapter, PCHAR pData)
@@ -129,62 +139,23 @@ MLME_SendComplete(PADAPTER Adapter, u8 P
 	u8		DataTmp[200];
 
 	memcpy(DataTmp, Adapter->sMlmeFrame.pMMPDU, Adapter->sMlmeFrame.len);
-    #ifdef _PE_TX_DUMP_
-	WBDEBUG(( "dump tx callback, len=%d\n", Adapter->sMlmeFrame.len ));
-	DataDmp( Adapter->sMlmeFrame.pMMPDU, Adapter->sMlmeFrame.len, 0 );
-    #endif
 
     // Reclaim the data buffer
 	Adapter->sMlmeFrame.len = 0;
 	MLMEfreeMMPDUBuffer( Adapter, Adapter->sMlmeFrame.pMMPDU );
 
 
-	//TxCallback.wFrameType = pData[0];  //&0xf0;
 	//TODO : ?? The pData has been returned, but we still use it to know what kind
 	//			of mlme frame it is. Will it be dangerous??
-	//TxCallback.psFramePtr = pData;
 	TxCallback.psFramePtr = DataTmp;
-	if( SendOK )
+	if (SendOK)
 		TxCallback.bResult = MLME_SUCCESS;
 	else
 		TxCallback.bResult = TRANSMIT_FRAME_FAIL;
 
 	// Return resource
 	Adapter->sMlmeFrame.IsInUsed = PACKET_FREE_TO_USE;
-	#ifdef _PE_TX_DUMP_
-	WBDEBUG(("!!Return MLME tx packet\n"));
-	#endif
 }
 
-//===========================================================================
-//	Function:
-//		MLMERcvFrame()
-//
-//	Description:
-//      To receive and ready to process the MLME frame, excluding the FCS
-//      field.
-//      MDS usually passes the MMPDU, which may be segmented and stored into
-//      several Rx data buffers, to this function with a pointer to an array
-//      of the RXBUFFER structure and the number of entries in the array.
-//
-//  Arguments:
-//      Adapter         - Pointer to the Miniport Adatper Context.
-//      pRxBufferArray  - Pointer to the first RXBUFFER for the Rx frame.
-//      NumOfBuffer     - Number of the buffer segment.
-//      ReturnSlotIndex - Reserved for Rx handler
-//
-//	Return value:
-//      None.
-//===========================================================================
-void
-MLMERcvFrame(
-     PWB32_ADAPTER    Adapter,
-     PRXBUFFER        pRxBufferArray,
-     u8             NumOfBuffer,
-     u8            SlotIndex)
-{
-	BUG();
-    return;
-}
 
 
drivers/net/wireless/winbond/winbondport/mto.c +0 -262

315 lines not on this page · raw message

drivers/net/wireless/winbond/winbondport/wbhal_s.h +7 -53

83 lines not on this page · raw message

Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html