diff options
| -rw-r--r-- | drivers/staging/vt6656/bssdb.c | 8 | ||||
| -rw-r--r-- | drivers/staging/vt6656/bssdb.h | 6 | ||||
| -rw-r--r-- | drivers/staging/vt6656/channel.c | 2 | ||||
| -rw-r--r-- | drivers/staging/vt6656/device.h | 23 | ||||
| -rw-r--r-- | drivers/staging/vt6656/dpc.c | 18 | ||||
| -rw-r--r-- | drivers/staging/vt6656/ioctl.c | 2 | ||||
| -rw-r--r-- | drivers/staging/vt6656/mib.c | 53 | ||||
| -rw-r--r-- | drivers/staging/vt6656/mib.h | 12 | ||||
| -rw-r--r-- | drivers/staging/vt6656/rf.c | 4 | ||||
| -rw-r--r-- | drivers/staging/vt6656/ttype.h | 5 |
10 files changed, 77 insertions, 56 deletions
diff --git a/drivers/staging/vt6656/bssdb.c b/drivers/staging/vt6656/bssdb.c index 8c68e04cf988..a10c46339add 100644 --- a/drivers/staging/vt6656/bssdb.c +++ b/drivers/staging/vt6656/bssdb.c | |||
| @@ -608,7 +608,7 @@ BOOL BSSbUpdateToBSSList(void *hDeviceContext, | |||
| 608 | PSDevice pDevice = (PSDevice)hDeviceContext; | 608 | PSDevice pDevice = (PSDevice)hDeviceContext; |
| 609 | PSMgmtObject pMgmt = &(pDevice->sMgmtObj); | 609 | PSMgmtObject pMgmt = &(pDevice->sMgmtObj); |
| 610 | PSRxMgmtPacket pRxPacket = (PSRxMgmtPacket)pRxPacketContext; | 610 | PSRxMgmtPacket pRxPacket = (PSRxMgmtPacket)pRxPacketContext; |
| 611 | LONG ldBm, ldBmSum; | 611 | signed long ldBm, ldBmSum; |
| 612 | BOOL bParsingQuiet = FALSE; | 612 | BOOL bParsingQuiet = FALSE; |
| 613 | // BYTE abyTmpSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1]; | 613 | // BYTE abyTmpSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1]; |
| 614 | 614 | ||
| @@ -1550,9 +1550,9 @@ void s_vCheckSensitivity(void *hDeviceContext) | |||
| 1550 | ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) && (pMgmt->eCurrState == WMAC_STATE_JOINTED))) { | 1550 | ((pMgmt->eCurrMode == WMAC_MODE_IBSS_STA) && (pMgmt->eCurrState == WMAC_STATE_JOINTED))) { |
| 1551 | pBSSList = BSSpAddrIsInBSSList(pDevice, pMgmt->abyCurrBSSID, (PWLAN_IE_SSID)pMgmt->abyCurrSSID); | 1551 | pBSSList = BSSpAddrIsInBSSList(pDevice, pMgmt->abyCurrBSSID, (PWLAN_IE_SSID)pMgmt->abyCurrSSID); |
| 1552 | if (pBSSList != NULL) { | 1552 | if (pBSSList != NULL) { |
| 1553 | // Updata BB Reg if RSSI is too strong. | 1553 | /* Update BB register if RSSI is too strong */ |
| 1554 | LONG LocalldBmAverage = 0; | 1554 | signed long LocalldBmAverage = 0; |
| 1555 | LONG uNumofdBm = 0; | 1555 | signed long uNumofdBm = 0; |
| 1556 | for (ii = 0; ii < RSSI_STAT_COUNT; ii++) { | 1556 | for (ii = 0; ii < RSSI_STAT_COUNT; ii++) { |
| 1557 | if (pBSSList->ldBmAverage[ii] != 0) { | 1557 | if (pBSSList->ldBmAverage[ii] != 0) { |
| 1558 | uNumofdBm ++; | 1558 | uNumofdBm ++; |
diff --git a/drivers/staging/vt6656/bssdb.h b/drivers/staging/vt6656/bssdb.h index 8140b9b37fb4..0158b0bdf1a0 100644 --- a/drivers/staging/vt6656/bssdb.h +++ b/drivers/staging/vt6656/bssdb.h | |||
| @@ -109,9 +109,9 @@ typedef struct tagKnownBSS { | |||
| 109 | 109 | ||
| 110 | // WORD wATIMWindow; | 110 | // WORD wATIMWindow; |
| 111 | BYTE byRSSIStatCnt; | 111 | BYTE byRSSIStatCnt; |
| 112 | LONG ldBmMAX; | 112 | signed long ldBmMAX; |
| 113 | LONG ldBmAverage[RSSI_STAT_COUNT]; | 113 | signed long ldBmAverage[RSSI_STAT_COUNT]; |
| 114 | LONG ldBmAverRange; | 114 | signed long ldBmAverRange; |
| 115 | //For any BSSID selection improvment | 115 | //For any BSSID selection improvment |
| 116 | BOOL bSelected; | 116 | BOOL bSelected; |
| 117 | 117 | ||
diff --git a/drivers/staging/vt6656/channel.c b/drivers/staging/vt6656/channel.c index 06a213f3f4df..c9b8b19a1f7b 100644 --- a/drivers/staging/vt6656/channel.c +++ b/drivers/staging/vt6656/channel.c | |||
| @@ -116,7 +116,7 @@ static SChannelTblElement sChannelTbl[CB_MAX_CHANNEL+1] = | |||
| 116 | static struct | 116 | static struct |
| 117 | { | 117 | { |
| 118 | BYTE byChannelCountryCode; /* The country code */ | 118 | BYTE byChannelCountryCode; /* The country code */ |
| 119 | CHAR chCountryCode[2]; | 119 | char chCountryCode[2]; |
| 120 | BYTE bChannelIdxList[CB_MAX_CHANNEL]; /* Available channels Index */ | 120 | BYTE bChannelIdxList[CB_MAX_CHANNEL]; /* Available channels Index */ |
| 121 | BYTE byPower[CB_MAX_CHANNEL]; | 121 | BYTE byPower[CB_MAX_CHANNEL]; |
| 122 | } ChannelRuleTab[] = | 122 | } ChannelRuleTab[] = |
diff --git a/drivers/staging/vt6656/device.h b/drivers/staging/vt6656/device.h index b507bb8193d6..eb45ee597644 100644 --- a/drivers/staging/vt6656/device.h +++ b/drivers/staging/vt6656/device.h | |||
| @@ -210,7 +210,7 @@ typedef enum _CONTEXT_TYPE { | |||
| 210 | typedef struct _RCB | 210 | typedef struct _RCB |
| 211 | { | 211 | { |
| 212 | void *Next; | 212 | void *Next; |
| 213 | LONG Ref; | 213 | signed long Ref; |
| 214 | void *pDevice; | 214 | void *pDevice; |
| 215 | struct urb *pUrb; | 215 | struct urb *pUrb; |
| 216 | SRxMgmtPacket sMngPacket; | 216 | SRxMgmtPacket sMngPacket; |
| @@ -234,16 +234,15 @@ typedef struct _USB_SEND_CONTEXT { | |||
| 234 | } USB_SEND_CONTEXT, *PUSB_SEND_CONTEXT; | 234 | } USB_SEND_CONTEXT, *PUSB_SEND_CONTEXT; |
| 235 | 235 | ||
| 236 | 236 | ||
| 237 | //structure got from configuration file as user desired default setting. | 237 | /* structure got from configuration file as user-desired default settings */ |
| 238 | typedef struct _DEFAULT_CONFIG{ | 238 | typedef struct _DEFAULT_CONFIG { |
| 239 | INT ZoneType; | 239 | signed int ZoneType; |
| 240 | INT eConfigMode; | 240 | signed int eConfigMode; |
| 241 | INT eAuthenMode; //open/wep/wpa | 241 | signed int eAuthenMode; /* open/wep/wpa */ |
| 242 | INT bShareKeyAlgorithm; //open-open/open-sharekey/wep-sharekey | 242 | signed int bShareKeyAlgorithm; /* open-open/{open,wep}-sharekey */ |
| 243 | INT keyidx; //wepkey index | 243 | signed int keyidx; /* wepkey index */ |
| 244 | INT eEncryptionStatus; | 244 | signed int eEncryptionStatus; |
| 245 | 245 | } DEFAULT_CONFIG, *PDEFAULT_CONFIG; | |
| 246 | }DEFAULT_CONFIG,*PDEFAULT_CONFIG; | ||
| 247 | 246 | ||
| 248 | // | 247 | // |
| 249 | // Structure to keep track of usb interrupt packets | 248 | // Structure to keep track of usb interrupt packets |
| @@ -785,7 +784,7 @@ typedef struct __device_info { | |||
| 785 | BYTE byBBVGANew; | 784 | BYTE byBBVGANew; |
| 786 | BYTE byBBVGACurrent; | 785 | BYTE byBBVGACurrent; |
| 787 | BYTE abyBBVGA[BB_VGA_LEVEL]; | 786 | BYTE abyBBVGA[BB_VGA_LEVEL]; |
| 788 | LONG ldBmThreshold[BB_VGA_LEVEL]; | 787 | signed long ldBmThreshold[BB_VGA_LEVEL]; |
| 789 | 788 | ||
| 790 | BYTE byBBPreEDRSSI; | 789 | BYTE byBBPreEDRSSI; |
| 791 | BYTE byBBPreEDIndex; | 790 | BYTE byBBPreEDIndex; |
diff --git a/drivers/staging/vt6656/dpc.c b/drivers/staging/vt6656/dpc.c index 6982224dfa90..d9a02ba40d84 100644 --- a/drivers/staging/vt6656/dpc.c +++ b/drivers/staging/vt6656/dpc.c | |||
| @@ -98,7 +98,7 @@ s_vProcessRxMACHeader ( | |||
| 98 | static BOOL s_bAPModeRxCtl( | 98 | static BOOL s_bAPModeRxCtl( |
| 99 | PSDevice pDevice, | 99 | PSDevice pDevice, |
| 100 | PBYTE pbyFrame, | 100 | PBYTE pbyFrame, |
| 101 | INT iSANodeIndex | 101 | signed int iSANodeIndex |
| 102 | ); | 102 | ); |
| 103 | 103 | ||
| 104 | 104 | ||
| @@ -108,8 +108,8 @@ static BOOL s_bAPModeRxData ( | |||
| 108 | struct sk_buff *skb, | 108 | struct sk_buff *skb, |
| 109 | UINT FrameSize, | 109 | UINT FrameSize, |
| 110 | UINT cbHeaderOffset, | 110 | UINT cbHeaderOffset, |
| 111 | INT iSANodeIndex, | 111 | signed int iSANodeIndex, |
| 112 | INT iDANodeIndex | 112 | signed int iDANodeIndex |
| 113 | ); | 113 | ); |
| 114 | 114 | ||
| 115 | 115 | ||
| @@ -336,8 +336,8 @@ RXbBulkInProcessData ( | |||
| 336 | UINT cbHeaderOffset; | 336 | UINT cbHeaderOffset; |
| 337 | UINT FrameSize; | 337 | UINT FrameSize; |
| 338 | WORD wEtherType = 0; | 338 | WORD wEtherType = 0; |
| 339 | INT iSANodeIndex = -1; | 339 | signed int iSANodeIndex = -1; |
| 340 | INT iDANodeIndex = -1; | 340 | signed int iDANodeIndex = -1; |
| 341 | UINT ii; | 341 | UINT ii; |
| 342 | UINT cbIVOffset; | 342 | UINT cbIVOffset; |
| 343 | PBYTE pbyRxSts; | 343 | PBYTE pbyRxSts; |
| @@ -352,7 +352,7 @@ RXbBulkInProcessData ( | |||
| 352 | DWORD dwRxTSC47_16 = 0; | 352 | DWORD dwRxTSC47_16 = 0; |
| 353 | SKeyItem STempKey; | 353 | SKeyItem STempKey; |
| 354 | // 802.11h RPI | 354 | // 802.11h RPI |
| 355 | //LONG ldBm = 0; | 355 | /* signed long ldBm = 0; */ |
| 356 | BOOL bIsWEP = FALSE; | 356 | BOOL bIsWEP = FALSE; |
| 357 | BOOL bExtIV = FALSE; | 357 | BOOL bExtIV = FALSE; |
| 358 | DWORD dwWbkStatus; | 358 | DWORD dwWbkStatus; |
| @@ -1023,7 +1023,7 @@ RXbBulkInProcessData ( | |||
| 1023 | static BOOL s_bAPModeRxCtl ( | 1023 | static BOOL s_bAPModeRxCtl ( |
| 1024 | PSDevice pDevice, | 1024 | PSDevice pDevice, |
| 1025 | PBYTE pbyFrame, | 1025 | PBYTE pbyFrame, |
| 1026 | INT iSANodeIndex | 1026 | signed int iSANodeIndex |
| 1027 | ) | 1027 | ) |
| 1028 | { | 1028 | { |
| 1029 | PS802_11Header p802_11Header; | 1029 | PS802_11Header p802_11Header; |
| @@ -1431,8 +1431,8 @@ static BOOL s_bAPModeRxData ( | |||
| 1431 | struct sk_buff *skb, | 1431 | struct sk_buff *skb, |
| 1432 | UINT FrameSize, | 1432 | UINT FrameSize, |
| 1433 | UINT cbHeaderOffset, | 1433 | UINT cbHeaderOffset, |
| 1434 | INT iSANodeIndex, | 1434 | signed int iSANodeIndex, |
| 1435 | INT iDANodeIndex | 1435 | signed int iDANodeIndex |
| 1436 | ) | 1436 | ) |
| 1437 | 1437 | ||
| 1438 | { | 1438 | { |
diff --git a/drivers/staging/vt6656/ioctl.c b/drivers/staging/vt6656/ioctl.c index 69d1d735f712..368e49f782fc 100644 --- a/drivers/staging/vt6656/ioctl.c +++ b/drivers/staging/vt6656/ioctl.c | |||
| @@ -81,7 +81,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq) { | |||
| 81 | BYTE abyNullAddr[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; | 81 | BYTE abyNullAddr[] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; |
| 82 | DWORD dwKeyIndex= 0; | 82 | DWORD dwKeyIndex= 0; |
| 83 | BYTE abyScanSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1]; | 83 | BYTE abyScanSSID[WLAN_IEHDR_LEN + WLAN_SSID_MAXLEN + 1]; |
| 84 | LONG ldBm; | 84 | signed long ldBm; |
| 85 | 85 | ||
| 86 | pReq->wResult = 0; | 86 | pReq->wResult = 0; |
| 87 | 87 | ||
diff --git a/drivers/staging/vt6656/mib.c b/drivers/staging/vt6656/mib.c index b6f138efb472..efcd81c042f2 100644 --- a/drivers/staging/vt6656/mib.c +++ b/drivers/staging/vt6656/mib.c | |||
| @@ -187,87 +187,114 @@ void STAvUpdateRDStatCounter (PSStatCounter pStatistic, | |||
| 187 | if(byRSR & RSR_CRCOK) { | 187 | if(byRSR & RSR_CRCOK) { |
| 188 | pStatistic->CustomStat.ullRsr11MCRCOk++; | 188 | pStatistic->CustomStat.ullRsr11MCRCOk++; |
| 189 | } | 189 | } |
| 190 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"11M: ALL[%d], OK[%d]:[%02x]\n", (INT)pStatistic->CustomStat.ullRsr11M, (INT)pStatistic->CustomStat.ullRsr11MCRCOk, byRSR); | 190 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "11M: ALL[%d], OK[%d]:[%02x]\n", |
| 191 | (signed int) pStatistic->CustomStat.ullRsr11M, | ||
| 192 | (signed int) pStatistic->CustomStat.ullRsr11MCRCOk, byRSR); | ||
| 191 | } | 193 | } |
| 192 | else if(byRxRate==11) { | 194 | else if(byRxRate==11) { |
| 193 | pStatistic->CustomStat.ullRsr5M++; | 195 | pStatistic->CustomStat.ullRsr5M++; |
| 194 | if(byRSR & RSR_CRCOK) { | 196 | if(byRSR & RSR_CRCOK) { |
| 195 | pStatistic->CustomStat.ullRsr5MCRCOk++; | 197 | pStatistic->CustomStat.ullRsr5MCRCOk++; |
| 196 | } | 198 | } |
| 197 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" 5M: ALL[%d], OK[%d]:[%02x]\n", (INT)pStatistic->CustomStat.ullRsr5M, (INT)pStatistic->CustomStat.ullRsr5MCRCOk, byRSR); | 199 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " 5M: ALL[%d], OK[%d]:[%02x]\n", |
| 200 | (signed int) pStatistic->CustomStat.ullRsr5M, | ||
| 201 | (signed int) pStatistic->CustomStat.ullRsr5MCRCOk, byRSR); | ||
| 198 | } | 202 | } |
| 199 | else if(byRxRate==4) { | 203 | else if(byRxRate==4) { |
| 200 | pStatistic->CustomStat.ullRsr2M++; | 204 | pStatistic->CustomStat.ullRsr2M++; |
| 201 | if(byRSR & RSR_CRCOK) { | 205 | if(byRSR & RSR_CRCOK) { |
| 202 | pStatistic->CustomStat.ullRsr2MCRCOk++; | 206 | pStatistic->CustomStat.ullRsr2MCRCOk++; |
| 203 | } | 207 | } |
| 204 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" 2M: ALL[%d], OK[%d]:[%02x]\n", (INT)pStatistic->CustomStat.ullRsr2M, (INT)pStatistic->CustomStat.ullRsr2MCRCOk, byRSR); | 208 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " 2M: ALL[%d], OK[%d]:[%02x]\n", |
| 209 | (signed int) pStatistic->CustomStat.ullRsr2M, | ||
| 210 | (signed int) pStatistic->CustomStat.ullRsr2MCRCOk, byRSR); | ||
| 205 | } | 211 | } |
| 206 | else if(byRxRate==2){ | 212 | else if(byRxRate==2){ |
| 207 | pStatistic->CustomStat.ullRsr1M++; | 213 | pStatistic->CustomStat.ullRsr1M++; |
| 208 | if(byRSR & RSR_CRCOK) { | 214 | if(byRSR & RSR_CRCOK) { |
| 209 | pStatistic->CustomStat.ullRsr1MCRCOk++; | 215 | pStatistic->CustomStat.ullRsr1MCRCOk++; |
| 210 | } | 216 | } |
| 211 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" 1M: ALL[%d], OK[%d]:[%02x]\n", (INT)pStatistic->CustomStat.ullRsr1M, (INT)pStatistic->CustomStat.ullRsr1MCRCOk, byRSR); | 217 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " 1M: ALL[%d], OK[%d]:[%02x]\n", |
| 218 | (signed int) pStatistic->CustomStat.ullRsr1M, | ||
| 219 | (signed int) pStatistic->CustomStat.ullRsr1MCRCOk, byRSR); | ||
| 212 | } | 220 | } |
| 213 | else if(byRxRate==12){ | 221 | else if(byRxRate==12){ |
| 214 | pStatistic->CustomStat.ullRsr6M++; | 222 | pStatistic->CustomStat.ullRsr6M++; |
| 215 | if(byRSR & RSR_CRCOK) { | 223 | if(byRSR & RSR_CRCOK) { |
| 216 | pStatistic->CustomStat.ullRsr6MCRCOk++; | 224 | pStatistic->CustomStat.ullRsr6MCRCOk++; |
| 217 | } | 225 | } |
| 218 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" 6M: ALL[%d], OK[%d]\n", (INT)pStatistic->CustomStat.ullRsr6M, (INT)pStatistic->CustomStat.ullRsr6MCRCOk); | 226 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " 6M: ALL[%d], OK[%d]\n", |
| 227 | (signed int) pStatistic->CustomStat.ullRsr6M, | ||
| 228 | (signed int) pStatistic->CustomStat.ullRsr6MCRCOk); | ||
| 219 | } | 229 | } |
| 220 | else if(byRxRate==18){ | 230 | else if(byRxRate==18){ |
| 221 | pStatistic->CustomStat.ullRsr9M++; | 231 | pStatistic->CustomStat.ullRsr9M++; |
| 222 | if(byRSR & RSR_CRCOK) { | 232 | if(byRSR & RSR_CRCOK) { |
| 223 | pStatistic->CustomStat.ullRsr9MCRCOk++; | 233 | pStatistic->CustomStat.ullRsr9MCRCOk++; |
| 224 | } | 234 | } |
| 225 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO" 9M: ALL[%d], OK[%d]\n", (INT)pStatistic->CustomStat.ullRsr9M, (INT)pStatistic->CustomStat.ullRsr9MCRCOk); | 235 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO " 9M: ALL[%d], OK[%d]\n", |
| 236 | (signed int) pStatistic->CustomStat.ullRsr9M, | ||
| 237 | (signed int) pStatistic->CustomStat.ullRsr9MCRCOk); | ||
| 226 | } | 238 | } |
| 227 | else if(byRxRate==24){ | 239 | else if(byRxRate==24){ |
| 228 | pStatistic->CustomStat.ullRsr12M++; | 240 | pStatistic->CustomStat.ullRsr12M++; |
| 229 | if(byRSR & RSR_CRCOK) { | 241 | if(byRSR & RSR_CRCOK) { |
| 230 | pStatistic->CustomStat.ullRsr12MCRCOk++; | 242 | pStatistic->CustomStat.ullRsr12MCRCOk++; |
| 231 | } | 243 | } |
| 232 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"12M: ALL[%d], OK[%d]\n", (INT)pStatistic->CustomStat.ullRsr12M, (INT)pStatistic->CustomStat.ullRsr12MCRCOk); | 244 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "12M: ALL[%d], OK[%d]\n", |
| 245 | (signed int) pStatistic->CustomStat.ullRsr12M, | ||
| 246 | (signed int) pStatistic->CustomStat.ullRsr12MCRCOk); | ||
| 233 | } | 247 | } |
| 234 | else if(byRxRate==36){ | 248 | else if(byRxRate==36){ |
| 235 | pStatistic->CustomStat.ullRsr18M++; | 249 | pStatistic->CustomStat.ullRsr18M++; |
| 236 | if(byRSR & RSR_CRCOK) { | 250 | if(byRSR & RSR_CRCOK) { |
| 237 | pStatistic->CustomStat.ullRsr18MCRCOk++; | 251 | pStatistic->CustomStat.ullRsr18MCRCOk++; |
| 238 | } | 252 | } |
| 239 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"18M: ALL[%d], OK[%d]\n", (INT)pStatistic->CustomStat.ullRsr18M, (INT)pStatistic->CustomStat.ullRsr18MCRCOk); | 253 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "18M: ALL[%d], OK[%d]\n", |
| 254 | (signed int) pStatistic->CustomStat.ullRsr18M, | ||
| 255 | (signed int) pStatistic->CustomStat.ullRsr18MCRCOk); | ||
| 240 | } | 256 | } |
| 241 | else if(byRxRate==48){ | 257 | else if(byRxRate==48){ |
| 242 | pStatistic->CustomStat.ullRsr24M++; | 258 | pStatistic->CustomStat.ullRsr24M++; |
| 243 | if(byRSR & RSR_CRCOK) { | 259 | if(byRSR & RSR_CRCOK) { |
| 244 | pStatistic->CustomStat.ullRsr24MCRCOk++; | 260 | pStatistic->CustomStat.ullRsr24MCRCOk++; |
| 245 | } | 261 | } |
| 246 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"24M: ALL[%d], OK[%d]\n", (INT)pStatistic->CustomStat.ullRsr24M, (INT)pStatistic->CustomStat.ullRsr24MCRCOk); | 262 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "24M: ALL[%d], OK[%d]\n", |
| 263 | (signed int) pStatistic->CustomStat.ullRsr24M, | ||
| 264 | (signed int) pStatistic->CustomStat.ullRsr24MCRCOk); | ||
| 247 | } | 265 | } |
| 248 | else if(byRxRate==72){ | 266 | else if(byRxRate==72){ |
| 249 | pStatistic->CustomStat.ullRsr36M++; | 267 | pStatistic->CustomStat.ullRsr36M++; |
| 250 | if(byRSR & RSR_CRCOK) { | 268 | if(byRSR & RSR_CRCOK) { |
| 251 | pStatistic->CustomStat.ullRsr36MCRCOk++; | 269 | pStatistic->CustomStat.ullRsr36MCRCOk++; |
| 252 | } | 270 | } |
| 253 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"36M: ALL[%d], OK[%d]\n", (INT)pStatistic->CustomStat.ullRsr36M, (INT)pStatistic->CustomStat.ullRsr36MCRCOk); | 271 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "36M: ALL[%d], OK[%d]\n", |
| 272 | (signed int) pStatistic->CustomStat.ullRsr36M, | ||
| 273 | (signed int) pStatistic->CustomStat.ullRsr36MCRCOk); | ||
| 254 | } | 274 | } |
| 255 | else if(byRxRate==96){ | 275 | else if(byRxRate==96){ |
| 256 | pStatistic->CustomStat.ullRsr48M++; | 276 | pStatistic->CustomStat.ullRsr48M++; |
| 257 | if(byRSR & RSR_CRCOK) { | 277 | if(byRSR & RSR_CRCOK) { |
| 258 | pStatistic->CustomStat.ullRsr48MCRCOk++; | 278 | pStatistic->CustomStat.ullRsr48MCRCOk++; |
| 259 | } | 279 | } |
| 260 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"48M: ALL[%d], OK[%d]\n", (INT)pStatistic->CustomStat.ullRsr48M, (INT)pStatistic->CustomStat.ullRsr48MCRCOk); | 280 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "48M: ALL[%d], OK[%d]\n", |
| 281 | (signed int) pStatistic->CustomStat.ullRsr48M, | ||
| 282 | (signed int) pStatistic->CustomStat.ullRsr48MCRCOk); | ||
| 261 | } | 283 | } |
| 262 | else if(byRxRate==108){ | 284 | else if(byRxRate==108){ |
| 263 | pStatistic->CustomStat.ullRsr54M++; | 285 | pStatistic->CustomStat.ullRsr54M++; |
| 264 | if(byRSR & RSR_CRCOK) { | 286 | if(byRSR & RSR_CRCOK) { |
| 265 | pStatistic->CustomStat.ullRsr54MCRCOk++; | 287 | pStatistic->CustomStat.ullRsr54MCRCOk++; |
| 266 | } | 288 | } |
| 267 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"54M: ALL[%d], OK[%d]\n", (INT)pStatistic->CustomStat.ullRsr54M, (INT)pStatistic->CustomStat.ullRsr54MCRCOk); | 289 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "54M: ALL[%d], OK[%d]\n", |
| 290 | (signed int) pStatistic->CustomStat.ullRsr54M, | ||
| 291 | (signed int) pStatistic->CustomStat.ullRsr54MCRCOk); | ||
| 268 | } | 292 | } |
| 269 | else { | 293 | else { |
| 270 | DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO"Unknown: Total[%d], CRCOK[%d]\n", (INT)pStatistic->dwRsrRxPacket+1, (INT)pStatistic->dwRsrCRCOk); | 294 | DBG_PRT(MSG_LEVEL_DEBUG, |
| 295 | KERN_INFO "Unknown: Total[%d], CRCOK[%d]\n", | ||
| 296 | (signed int) pStatistic->dwRsrRxPacket+1, | ||
| 297 | (signed int)pStatistic->dwRsrCRCOk); | ||
| 271 | } | 298 | } |
| 272 | 299 | ||
| 273 | if (byRSR & RSR_BSSIDOK) | 300 | if (byRSR & RSR_BSSIDOK) |
diff --git a/drivers/staging/vt6656/mib.h b/drivers/staging/vt6656/mib.h index 8a532e877f0f..8cc5b3f0d70e 100644 --- a/drivers/staging/vt6656/mib.h +++ b/drivers/staging/vt6656/mib.h | |||
| @@ -85,15 +85,15 @@ typedef struct tagSDot11Counters { | |||
| 85 | // MIB2 counter | 85 | // MIB2 counter |
| 86 | // | 86 | // |
| 87 | typedef struct tagSMib2Counter { | 87 | typedef struct tagSMib2Counter { |
| 88 | LONG ifIndex; | 88 | signed long ifIndex; |
| 89 | char ifDescr[256]; // max size 255 plus zero ending | 89 | char ifDescr[256]; // max size 255 plus zero ending |
| 90 | // e.g. "interface 1" | 90 | // e.g. "interface 1" |
| 91 | LONG ifType; | 91 | signed long ifType; |
| 92 | LONG ifMtu; | 92 | signed long ifMtu; |
| 93 | DWORD ifSpeed; | 93 | DWORD ifSpeed; |
| 94 | BYTE ifPhysAddress[ETH_ALEN]; | 94 | BYTE ifPhysAddress[ETH_ALEN]; |
| 95 | LONG ifAdminStatus; | 95 | signed long ifAdminStatus; |
| 96 | LONG ifOperStatus; | 96 | signed long ifOperStatus; |
| 97 | DWORD ifLastChange; | 97 | DWORD ifLastChange; |
| 98 | DWORD ifInOctets; | 98 | DWORD ifInOctets; |
| 99 | DWORD ifInUcastPkts; | 99 | DWORD ifInUcastPkts; |
| @@ -124,7 +124,7 @@ typedef struct tagSMib2Counter { | |||
| 124 | // RMON counter | 124 | // RMON counter |
| 125 | // | 125 | // |
| 126 | typedef struct tagSRmonCounter { | 126 | typedef struct tagSRmonCounter { |
| 127 | LONG etherStatsIndex; | 127 | signed long etherStatsIndex; |
| 128 | DWORD etherStatsDataSource; | 128 | DWORD etherStatsDataSource; |
| 129 | DWORD etherStatsDropEvents; | 129 | DWORD etherStatsDropEvents; |
| 130 | DWORD etherStatsOctets; | 130 | DWORD etherStatsOctets; |
diff --git a/drivers/staging/vt6656/rf.c b/drivers/staging/vt6656/rf.c index 1126cb48f4a1..4c4f5f6dc366 100644 --- a/drivers/staging/vt6656/rf.c +++ b/drivers/staging/vt6656/rf.c | |||
| @@ -962,8 +962,8 @@ RFvRSSITodBm ( | |||
| 962 | ) | 962 | ) |
| 963 | { | 963 | { |
| 964 | BYTE byIdx = (((byCurrRSSI & 0xC0) >> 6) & 0x03); | 964 | BYTE byIdx = (((byCurrRSSI & 0xC0) >> 6) & 0x03); |
| 965 | LONG b = (byCurrRSSI & 0x3F); | 965 | signed long b = (byCurrRSSI & 0x3F); |
| 966 | LONG a = 0; | 966 | signed long a = 0; |
| 967 | BYTE abyAIROHARF[4] = {0, 18, 0, 40}; | 967 | BYTE abyAIROHARF[4] = {0, 18, 0, 40}; |
| 968 | 968 | ||
| 969 | switch (pDevice->byRFType) { | 969 | switch (pDevice->byRFType) { |
diff --git a/drivers/staging/vt6656/ttype.h b/drivers/staging/vt6656/ttype.h index 4dfe00acf24a..3a297754233a 100644 --- a/drivers/staging/vt6656/ttype.h +++ b/drivers/staging/vt6656/ttype.h | |||
| @@ -72,11 +72,6 @@ typedef int BOOL; | |||
| 72 | 72 | ||
| 73 | /****** Simple typedefs ***************************************************/ | 73 | /****** Simple typedefs ***************************************************/ |
| 74 | 74 | ||
| 75 | typedef char CHAR; | ||
| 76 | typedef signed short SHORT; | ||
| 77 | typedef signed int INT; | ||
| 78 | typedef signed long LONG; | ||
| 79 | |||
| 80 | typedef unsigned char UCHAR; | 75 | typedef unsigned char UCHAR; |
| 81 | typedef unsigned short USHORT; | 76 | typedef unsigned short USHORT; |
| 82 | typedef unsigned int UINT; | 77 | typedef unsigned int UINT; |
