Commit 8b515de7 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: camel case clean up CARDvUpdateNextTBTT

camel case changes
pDevice -> priv
qwTSF -> tsf
wBeaconInterval -> beacon_interval
pbyData -> data
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 414475f6
...@@ -727,45 +727,38 @@ void CARDvSetFirstNextTBTT(struct vnt_private *priv, u16 beacon_interval) ...@@ -727,45 +727,38 @@ void CARDvSetFirstNextTBTT(struct vnt_private *priv, u16 beacon_interval)
* *
* Parameters: * Parameters:
* In: * In:
* pDevice - The adapter to be set * priv - The adapter to be set
* qwTSF - Current TSF counter * tsf - Current TSF counter
* wBeaconInterval - Beacon Interval * beacon_interval - Beacon Interval
* Out: * Out:
* none * none
* *
* Return Value: none * Return Value: none
* *
*/ */
void CARDvUpdateNextTBTT(struct vnt_private *pDevice, u64 qwTSF, void CARDvUpdateNextTBTT(struct vnt_private *priv, u64 tsf,
u16 wBeaconInterval) u16 beacon_interval)
{ {
u8 pbyData[8]; u8 data[8];
qwTSF = CARDqGetNextTBTT(qwTSF, wBeaconInterval);
// Set NextTBTT tsf = CARDqGetNextTBTT(tsf, beacon_interval);
pbyData[0] = (u8)qwTSF; data[0] = (u8)tsf;
pbyData[1] = (u8)(qwTSF >> 8); data[1] = (u8)(tsf >> 8);
pbyData[2] = (u8)(qwTSF >> 16); data[2] = (u8)(tsf >> 16);
pbyData[3] = (u8)(qwTSF >> 24); data[3] = (u8)(tsf >> 24);
pbyData[4] = (u8)(qwTSF >> 32); data[4] = (u8)(tsf >> 32);
pbyData[5] = (u8)(qwTSF >> 40); data[5] = (u8)(tsf >> 40);
pbyData[6] = (u8)(qwTSF >> 48); data[6] = (u8)(tsf >> 48);
pbyData[7] = (u8)(qwTSF >> 56); data[7] = (u8)(tsf >> 56);
CONTROLnsRequestOut(pDevice, CONTROLnsRequestOut(priv, MESSAGE_TYPE_SET_TSFTBTT,
MESSAGE_TYPE_SET_TSFTBTT, MESSAGE_REQUEST_TBTT, 0, 8, data);
MESSAGE_REQUEST_TBTT,
0,
8,
pbyData
);
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO
"Card:Update Next TBTT[%8lx]\n", (unsigned long)qwTSF); "Card:Update Next TBTT[%8lx]\n", (unsigned long)tsf);
return; return;
} }
/* /*
......
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