mirror of https://gitee.com/openkylin/linux.git
staging: vt6656: CARDqGetNextTBTT remove camel case
qwTSF -> tsf wBeaconInterval -> beacon_interval uBeaconInterval -> beacon_int Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e151e478fd
commit
5f4dfb66e6
|
@ -657,30 +657,30 @@ bool CARDbClearCurrentTSF(struct vnt_private *priv)
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* In:
|
* In:
|
||||||
* qwTSF - Current TSF counter
|
* tsf - Current TSF counter
|
||||||
* wbeaconInterval - Beacon Interval
|
* beacon_interval - Beacon Interval
|
||||||
* Out:
|
* Out:
|
||||||
* qwCurrTSF - Current TSF counter
|
* tsf - Current TSF counter
|
||||||
*
|
*
|
||||||
* Return Value: TSF value of next Beacon
|
* Return Value: TSF value of next Beacon
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
u64 CARDqGetNextTBTT(u64 qwTSF, u16 wBeaconInterval)
|
u64 CARDqGetNextTBTT(u64 tsf, u16 beacon_interval)
|
||||||
{
|
{
|
||||||
u32 uBeaconInterval;
|
u32 beacon_int;
|
||||||
|
|
||||||
uBeaconInterval = wBeaconInterval * 1024;
|
beacon_int = beacon_interval * 1024;
|
||||||
|
|
||||||
/* Next TBTT =
|
/* Next TBTT =
|
||||||
* ((local_current_TSF / beacon_interval) + 1) * beacon_interval
|
* ((local_current_TSF / beacon_interval) + 1) * beacon_interval
|
||||||
*/
|
*/
|
||||||
if (uBeaconInterval) {
|
if (beacon_int) {
|
||||||
do_div(qwTSF, uBeaconInterval);
|
do_div(tsf, beacon_int);
|
||||||
qwTSF += 1;
|
tsf += 1;
|
||||||
qwTSF *= uBeaconInterval;
|
tsf *= beacon_int;
|
||||||
}
|
}
|
||||||
|
|
||||||
return qwTSF;
|
return tsf;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue