Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219656
b: refs/heads/master
c: bed49c6
h: refs/heads/master
v: v3
  • Loading branch information
Roberto Rodriguez Alkala authored and Greg Kroah-Hartman committed Aug 31, 2010
1 parent b0d9ded commit a9c567f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1033f1f7ef3e0227eff68f236dc15d127ac550ff
refs/heads/master: bed49c69453641a2fd80d90f5a3b5204107eb459
26 changes: 9 additions & 17 deletions trunk/drivers/staging/otus/80211core/ratectrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,23 +422,15 @@ u8_t zfRateCtrlRateDiff(struct zsRcCell* rcCell, u8_t retryRate)
u16_t i;

/* Find retryRate in operationRateSet[] */
for (i=0; i<rcCell->operationRateCount; i++)
{
if (retryRate == rcCell->operationRateSet[i])
{
if (i < rcCell->currentRateIndex)
{
return ((rcCell->currentRateIndex - i)+1)>>1;
}
else if (i == rcCell->currentRateIndex == 0)
{
return 1;
}
else
{
return 0;
}
}
for (i = 0; i < rcCell->operationRateCount; i++) {
if (retryRate == rcCell->operationRateSet[i]) {
if (i < rcCell->currentRateIndex)
return ((rcCell->currentRateIndex - i)+1)>>1;
else if (i == rcCell->currentRateIndex && i == 0)
return 1;
else
return 0;
}
}
/* TODO : retry rate not in operation rate set */
zm_msg1_tx(ZM_LV_0, "Not in operation rate set:", retryRate);
Expand Down

0 comments on commit a9c567f

Please sign in to comment.