mirror of https://gitee.com/openkylin/linux.git
staging: vt6656: camel case and clean up CARDvSetFirstNextTBTT
camel case changes pDevice -> priv wBeaconInterval -> beacon_interval qwNextTBTT -> next_tbtt pbyData -> data Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5f4dfb66e6
commit
414475f6fd
|
@ -690,41 +690,35 @@ u64 CARDqGetNextTBTT(u64 tsf, u16 beacon_interval)
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* In:
|
* In:
|
||||||
* dwIoBase - IO Base
|
* dwIoBase - IO Base
|
||||||
* wBeaconInterval - Beacon Interval
|
* beacon_interval - Beacon Interval
|
||||||
* Out:
|
* Out:
|
||||||
* none
|
* none
|
||||||
*
|
*
|
||||||
* Return Value: none
|
* Return Value: none
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void CARDvSetFirstNextTBTT(struct vnt_private *pDevice, u16 wBeaconInterval)
|
void CARDvSetFirstNextTBTT(struct vnt_private *priv, u16 beacon_interval)
|
||||||
{
|
{
|
||||||
u64 qwNextTBTT = 0;
|
u64 next_tbtt = 0;
|
||||||
u8 pbyData[8];
|
u8 data[8];
|
||||||
|
|
||||||
CARDbClearCurrentTSF(pDevice);
|
CARDbClearCurrentTSF(priv);
|
||||||
//CARDbGetCurrentTSF(pDevice, &qwNextTBTT); //Get Local TSF counter
|
|
||||||
qwNextTBTT = CARDqGetNextTBTT(qwNextTBTT, wBeaconInterval);
|
|
||||||
// Set NextTBTT
|
|
||||||
|
|
||||||
pbyData[0] = (u8)qwNextTBTT;
|
next_tbtt = CARDqGetNextTBTT(next_tbtt, beacon_interval);
|
||||||
pbyData[1] = (u8)(qwNextTBTT >> 8);
|
|
||||||
pbyData[2] = (u8)(qwNextTBTT >> 16);
|
|
||||||
pbyData[3] = (u8)(qwNextTBTT >> 24);
|
|
||||||
pbyData[4] = (u8)(qwNextTBTT >> 32);
|
|
||||||
pbyData[5] = (u8)(qwNextTBTT >> 40);
|
|
||||||
pbyData[6] = (u8)(qwNextTBTT >> 48);
|
|
||||||
pbyData[7] = (u8)(qwNextTBTT >> 56);
|
|
||||||
|
|
||||||
CONTROLnsRequestOut(pDevice,
|
data[0] = (u8)next_tbtt;
|
||||||
MESSAGE_TYPE_SET_TSFTBTT,
|
data[1] = (u8)(next_tbtt >> 8);
|
||||||
MESSAGE_REQUEST_TBTT,
|
data[2] = (u8)(next_tbtt >> 16);
|
||||||
0,
|
data[3] = (u8)(next_tbtt >> 24);
|
||||||
8,
|
data[4] = (u8)(next_tbtt >> 32);
|
||||||
pbyData
|
data[5] = (u8)(next_tbtt >> 40);
|
||||||
);
|
data[6] = (u8)(next_tbtt >> 48);
|
||||||
|
data[7] = (u8)(next_tbtt >> 56);
|
||||||
|
|
||||||
return;
|
CONTROLnsRequestOut(priv, MESSAGE_TYPE_SET_TSFTBTT,
|
||||||
|
MESSAGE_REQUEST_TBTT, 0, 8, data);
|
||||||
|
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue