Commit 4095aef6 authored by Ruslan Pisarev's avatar Ruslan Pisarev Committed by Greg Kroah-Hartman

Staging: winbond: fix brace, comments and space coding style issue in mlmetxrx.c

This is a patch to the mlmetxrx.c file that fixed up a brace, comments
and space Errors found by the checkpatch.pl tool.
Signed-off-by: default avatarRuslan Pisarev <ruslan@rpisarev.org.ua>
Acked-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 25e47dfc
//============================================================================ /* ============================================================================
// Module Name: Module Name:
// MLMETxRx.C MLMETxRx.C
//
// Description: Description:
// The interface between MDS (MAC Data Service) and MLME. The interface between MDS (MAC Data Service) and MLME.
//
// Revision History: Revision History:
// -------------------------------------------------------------------------- --------------------------------------------------------------------------
// 200209 UN20 Jennifer Xu 200209 UN20 Jennifer Xu
// Initial Release Initial Release
// 20021108 PD43 Austin Liu 20021108 PD43 Austin Liu
// 20030117 PD43 Austin Liu 20030117 PD43 Austin Liu
// Deleted MLMEReturnPacket and MLMEProcThread() Deleted MLMEReturnPacket and MLMEProcThread()
//
// Copyright (c) 1996-2002 Winbond Electronics Corp. All Rights Reserved. Copyright (c) 1996-2002 Winbond Electronics Corp. All Rights Reserved.
//============================================================================ ============================================================================ */
#include "sysdef.h" #include "sysdef.h"
#include "mds_f.h" #include "mds_f.h"
//============================================================================= /* ============================================================================= */
u8 MLMESendFrame(struct wbsoft_priv * adapter, u8 *pMMPDU, u16 len, u8 DataType) u8 MLMESendFrame(struct wbsoft_priv *adapter, u8 *pMMPDU, u16 len, u8 DataType)
/* DataType : FRAME_TYPE_802_11_MANAGEMENT, FRAME_TYPE_802_11_MANAGEMENT_CHALLENGE, /* DataType : FRAME_TYPE_802_11_MANAGEMENT, FRAME_TYPE_802_11_MANAGEMENT_CHALLENGE,
FRAME_TYPE_802_11_DATA */ FRAME_TYPE_802_11_DATA */
{ {
...@@ -30,17 +30,17 @@ u8 MLMESendFrame(struct wbsoft_priv * adapter, u8 *pMMPDU, u16 len, u8 DataType) ...@@ -30,17 +30,17 @@ u8 MLMESendFrame(struct wbsoft_priv * adapter, u8 *pMMPDU, u16 len, u8 DataType)
} }
adapter->sMlmeFrame.IsInUsed = PACKET_COME_FROM_MLME; adapter->sMlmeFrame.IsInUsed = PACKET_COME_FROM_MLME;
// Keep information for sending /* Keep information for sending */
adapter->sMlmeFrame.pMMPDU = pMMPDU; adapter->sMlmeFrame.pMMPDU = pMMPDU;
adapter->sMlmeFrame.DataType = DataType; adapter->sMlmeFrame.DataType = DataType;
// len must be the last setting due to QUERY_SIZE_SECOND of Mds /* len must be the last setting due to QUERY_SIZE_SECOND of Mds */
adapter->sMlmeFrame.len = len; adapter->sMlmeFrame.len = len;
adapter->sMlmeFrame.wNumTxMMPDU++; adapter->sMlmeFrame.wNumTxMMPDU++;
// H/W will enter power save by set the register. S/W don't send null frame /* H/W will enter power save by set the register. S/W don't send null frame
//with PWRMgt bit enbled to enter power save now. with PWRMgt bit enbled to enter power save now. */
// Transmit NDIS packet /* Transmit NDIS packet */
Mds_Tx(adapter); Mds_Tx(adapter);
return true; return true;
} }
...@@ -60,7 +60,7 @@ static void MLMEfreeMMPDUBuffer(struct wbsoft_priv *adapter, s8 *pData) ...@@ -60,7 +60,7 @@ static void MLMEfreeMMPDUBuffer(struct wbsoft_priv *adapter, s8 *pData)
{ {
int i; int i;
// Reclaim the data buffer /* Reclaim the data buffer */
for (i = 0; i < MAX_NUM_TX_MMPDU; i++) { for (i = 0; i < MAX_NUM_TX_MMPDU; i++) {
if (pData == (s8 *)&(adapter->sMlmeFrame.TxMMPDU[i])) if (pData == (s8 *)&(adapter->sMlmeFrame.TxMMPDU[i]))
break; break;
...@@ -68,24 +68,24 @@ static void MLMEfreeMMPDUBuffer(struct wbsoft_priv *adapter, s8 *pData) ...@@ -68,24 +68,24 @@ static void MLMEfreeMMPDUBuffer(struct wbsoft_priv *adapter, s8 *pData)
if (adapter->sMlmeFrame.TxMMPDUInUse[i]) if (adapter->sMlmeFrame.TxMMPDUInUse[i])
adapter->sMlmeFrame.TxMMPDUInUse[i] = false; adapter->sMlmeFrame.TxMMPDUInUse[i] = false;
else { else {
// Something wrong /* Something wrong
// PD43 Add debug code here??? PD43 Add debug code here??? */
} }
} }
void void
MLME_SendComplete(struct wbsoft_priv * adapter, u8 PacketID, unsigned char SendOK) MLME_SendComplete(struct wbsoft_priv *adapter, u8 PacketID, unsigned char SendOK)
{ {
MLME_TXCALLBACK TxCallback; MLME_TXCALLBACK TxCallback;
// Reclaim the data buffer /* Reclaim the data buffer */
adapter->sMlmeFrame.len = 0; adapter->sMlmeFrame.len = 0;
MLMEfreeMMPDUBuffer( adapter, adapter->sMlmeFrame.pMMPDU ); MLMEfreeMMPDUBuffer(adapter, adapter->sMlmeFrame.pMMPDU);
TxCallback.bResult = MLME_SUCCESS; TxCallback.bResult = MLME_SUCCESS;
// Return resource /* Return resource */
adapter->sMlmeFrame.IsInUsed = PACKET_FREE_TO_USE; adapter->sMlmeFrame.IsInUsed = PACKET_FREE_TO_USE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment