staging:vt6655:IEEE11h: Whitespace cleanups
Neatening only. git diff -w shows no differences. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ab4622cca5
commit
b776000227
|
@ -116,7 +116,7 @@ static bool s_bRxMSRReq(PSMgmtObject pMgmt, PWLAN_FRAME_MSRREQ pMSRReq,
|
|||
((PWLAN_FRAME_MSRREQ)
|
||||
(pMgmt->abyCurrentMSRReq))->sMSRReqEIDs,
|
||||
uNumOfEIDs
|
||||
);
|
||||
);
|
||||
return bResult;
|
||||
}
|
||||
|
||||
|
@ -132,14 +132,14 @@ static bool s_bRxTPCReq(PSMgmtObject pMgmt,
|
|||
pTxPacket = (PSTxMgmtPacket)pMgmt->pbyMgmtPacketPool;
|
||||
memset(pTxPacket, 0, sizeof(STxMgmtPacket) + WLAN_A3FR_MAXLEN);
|
||||
pTxPacket->p80211Header = (PUWLAN_80211HDR)((unsigned char *)pTxPacket +
|
||||
sizeof(STxMgmtPacket));
|
||||
sizeof(STxMgmtPacket));
|
||||
|
||||
pFrame = (PWLAN_FRAME_TPCREP)((unsigned char *)pTxPacket +
|
||||
sizeof(STxMgmtPacket));
|
||||
sizeof(STxMgmtPacket));
|
||||
|
||||
pFrame->Header.wFrameCtl = (WLAN_SET_FC_FTYPE(WLAN_FTYPE_MGMT) |
|
||||
WLAN_SET_FC_FSTYPE(WLAN_FSTYPE_ACTION)
|
||||
);
|
||||
);
|
||||
|
||||
memcpy(pFrame->Header.abyAddr1,
|
||||
pTPCReq->Header.abyAddr2,
|
||||
|
@ -154,7 +154,7 @@ sizeof(STxMgmtPacket));
|
|||
pFrame->byCategory = 0;
|
||||
pFrame->byAction = 3;
|
||||
pFrame->byDialogToken = ((PWLAN_FRAME_MSRREQ)
|
||||
(pMgmt->abyCurrentMSRReq))->byDialogToken;
|
||||
(pMgmt->abyCurrentMSRReq))->byDialogToken;
|
||||
|
||||
pFrame->sTPCRepEIDs.byElementID = WLAN_EID_TPC_REP;
|
||||
pFrame->sTPCRepEIDs.len = 2;
|
||||
|
@ -185,16 +185,16 @@ sizeof(STxMgmtPacket));
|
|||
default:
|
||||
pFrame->sTPCRepEIDs.byLinkMargin = 82 - byRSSI;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
pTxPacket->cbMPDULen = sizeof(WLAN_FRAME_TPCREP);
|
||||
pTxPacket->cbPayloadLen = sizeof(WLAN_FRAME_TPCREP) -
|
||||
WLAN_HDR_ADDR3_LEN;
|
||||
WLAN_HDR_ADDR3_LEN;
|
||||
if (csMgmt_xmit(pMgmt->pAdapter, pTxPacket) != CMD_STATUS_PENDING)
|
||||
return false;
|
||||
return true;
|
||||
/* return (CARDbSendPacket(pMgmt->pAdapter, pFrame, PKT_TYPE_802_11_MNG,
|
||||
sizeof(WLAN_FRAME_TPCREP))); */
|
||||
sizeof(WLAN_FRAME_TPCREP))); */
|
||||
|
||||
}
|
||||
|
||||
|
@ -218,7 +218,7 @@ sizeof(WLAN_FRAME_TPCREP))); */
|
|||
*
|
||||
* Return Value: None.
|
||||
*
|
||||
-*/
|
||||
-*/
|
||||
bool
|
||||
IEEE11hbMgrRxAction(void *pMgmtHandle, void *pRxPacket)
|
||||
{
|
||||
|
@ -233,7 +233,7 @@ IEEE11hbMgrRxAction(void *pMgmtHandle, void *pRxPacket)
|
|||
return false;
|
||||
|
||||
pAction = (PWLAN_FRAME_ACTION)
|
||||
(((PSRxMgmtPacket)pRxPacket)->p80211Header);
|
||||
(((PSRxMgmtPacket)pRxPacket)->p80211Header);
|
||||
|
||||
if (pAction->byCategory == 0) {
|
||||
switch (pAction->byAction) {
|
||||
|
@ -269,17 +269,17 @@ IEEE11hbMgrRxAction(void *pMgmtHandle, void *pRxPacket)
|
|||
break;
|
||||
default:
|
||||
DBG_PRT(MSG_LEVEL_DEBUG,
|
||||
KERN_INFO"Unknown Action = %d\n",
|
||||
KERN_INFO "Unknown Action = %d\n",
|
||||
pAction->byAction);
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Unknown Category = %d\n",
|
||||
pAction->byCategory);
|
||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "Unknown Category = %d\n",
|
||||
pAction->byCategory);
|
||||
pAction->byCategory |= 0x80;
|
||||
|
||||
/*return (CARDbSendPacket(pMgmt->pAdapter, pAction, PKT_TYPE_802_11_MNG,
|
||||
uLength));*/
|
||||
uLength));*/
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
|
@ -290,18 +290,18 @@ bool IEEE11hbMSRRepTx(void *pMgmtHandle)
|
|||
{
|
||||
PSMgmtObject pMgmt = (PSMgmtObject) pMgmtHandle;
|
||||
PWLAN_FRAME_MSRREP pMSRRep = (PWLAN_FRAME_MSRREP)
|
||||
(pMgmt->abyCurrentMSRRep + sizeof(STxMgmtPacket));
|
||||
(pMgmt->abyCurrentMSRRep + sizeof(STxMgmtPacket));
|
||||
size_t uLength = 0;
|
||||
PSTxMgmtPacket pTxPacket = NULL;
|
||||
|
||||
pTxPacket = (PSTxMgmtPacket)pMgmt->abyCurrentMSRRep;
|
||||
memset(pTxPacket, 0, sizeof(STxMgmtPacket) + WLAN_A3FR_MAXLEN);
|
||||
pTxPacket->p80211Header = (PUWLAN_80211HDR)((unsigned char *)pTxPacket +
|
||||
sizeof(STxMgmtPacket));
|
||||
sizeof(STxMgmtPacket));
|
||||
|
||||
pMSRRep->Header.wFrameCtl = (WLAN_SET_FC_FTYPE(WLAN_FTYPE_MGMT) |
|
||||
WLAN_SET_FC_FSTYPE(WLAN_FSTYPE_ACTION)
|
||||
);
|
||||
);
|
||||
|
||||
memcpy(pMSRRep->Header.abyAddr1, ((PWLAN_FRAME_MSRREQ)
|
||||
(pMgmt->abyCurrentMSRReq))->Header.abyAddr2, WLAN_ADDR_LEN);
|
||||
|
@ -323,7 +323,7 @@ sizeof(STxMgmtPacket));
|
|||
return false;
|
||||
return true;
|
||||
/* return (CARDbSendPacket(pMgmt->pAdapter, pMSRRep, PKT_TYPE_802_11_MNG,
|
||||
uLength)); */
|
||||
uLength)); */
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -45,8 +45,8 @@
|
|||
|
||||
/*--------------------- Export Functions --------------------------*/
|
||||
|
||||
bool IEEE11hbMSRRepTx (
|
||||
bool IEEE11hbMSRRepTx(
|
||||
void *pMgmtHandle
|
||||
);
|
||||
);
|
||||
|
||||
#endif // __IEEE11h_H__
|
||||
|
|
Loading…
Reference in New Issue