659 {10, 20, 55, 110, 24, 36, 48, 72, 96, 144, 192, 216};
696 unsigned int cbFrameLength,
700 unsigned int uFrameTime;
701 unsigned int uPreamble;
703 unsigned int uRateIdx = (
unsigned int)wRate;
704 unsigned int uRate = 0;
716 if (byPreambleType == 1) {
721 uFrameTime = (cbFrameLength * 80) / uRate;
722 uTmp = (uFrameTime * uRate) / 80;
723 if (cbFrameLength != uTmp) {
727 return (uPreamble + uFrameTime);
730 uFrameTime = (cbFrameLength * 8 + 22) / uRate;
731 uTmp = ((uFrameTime * uRate) - 22) / 8;
732 if(cbFrameLength != uTmp) {
735 uFrameTime = uFrameTime * 4;
739 return (20 + uFrameTime);
762 unsigned int cbFrameLength,
770 unsigned int cbBitCount;
771 unsigned int cbUsCount = 0;
777 cbBitCount = cbFrameLength * 8;
782 cbUsCount = cbBitCount;
787 cbUsCount = cbBitCount / 2;
788 if (byPreambleType == 1)
797 cbUsCount = (cbBitCount * 10) / 55;
798 cbTmp = (cbUsCount * 55) / 10;
799 if (cbTmp != cbBitCount)
801 if (byPreambleType == 1)
811 cbUsCount = cbBitCount / 11;
812 cbTmp = cbUsCount * 11;
813 if (cbTmp != cbBitCount) {
815 if ((cbBitCount - cbTmp) <= 3)
818 if (byPreambleType == 1)
909 *pbyPhySrv = *pbyPhySrv | 0x80;
910 *pwPhyLen = (
WORD) cbUsCount;
914 *pwPhyLen = (
WORD)cbFrameLength;
935 switch (byAntennaMode) {
951 (
WORD) byAntennaMode,
1059 pbyAddr[0xd7] = 0x06;
1111 memcpy(abyArray, pbyAddr, wLength);
1120 memcpy(abyArray, pbyAgc, wLengthAgc);
1263 if (byBBVGA == pDevice->
abyBBVGA[0])
1333 static unsigned long s_ulGetLowSQ3(
PSDevice pDevice)
1336 unsigned long ulSQ3 = 0;
1337 unsigned long ulMaxPacket;
1344 if (pDevice->
aulPktNum[ii] > ulMaxPacket) {
1352 static unsigned long s_ulGetRatio(
PSDevice pDevice)
1355 unsigned long ulRatio = 0;
1356 unsigned long ulMaxPacket;
1357 unsigned long ulPacketNum;
1367 if ( pDevice->
aulPktNum[ii] > ulMaxPacket ) {
1382 s_vClearSQ3Value (
PSDevice pDevice)
1416 if (byRxRate == 2) {
1419 else if (byRxRate==4) {
1422 else if (byRxRate==11) {
1425 else if (byRxRate==22) {
1428 else if(byRxRate==12){
1432 else if(byRxRate==18){
1436 else if(byRxRate==24){
1440 else if(byRxRate==36){
1444 else if(byRxRate==48){
1448 else if(byRxRate==72){
1452 else if(byRxRate==96){
1456 else if(byRxRate==108){
1474 if ( pDevice->
byTMax == 0 )
1492 s_vClearSQ3Value(pDevice);
1520 s_vClearSQ3Value(pDevice);
1549 spin_lock_irq(&pDevice->
lock);
1553 s_vClearSQ3Value(pDevice);
1560 spin_unlock_irq(&pDevice->
lock);
1587 spin_lock_irq(&pDevice->
lock);
1592 s_vClearSQ3Value(pDevice);
1593 if ( pDevice->
byTMax == 0 ) {
1596 spin_unlock_irq(&pDevice->
lock);
1607 spin_unlock_irq(&pDevice->
lock);