Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58949
b: refs/heads/master
c: eef6caf
h: refs/heads/master
i:
  58947: 5bdc3e5
v: v3
  • Loading branch information
Larry Finger authored and David S. Miller committed Jul 11, 2007
1 parent 099bd1c commit 005256b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: d0410051164bbbc597e15f068b53c06a954ae0d4
refs/heads/master: eef6caf8a916f32f8d9b2a02d4fa7674736c00ac
12 changes: 7 additions & 5 deletions trunk/net/mac80211/rc80211_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,16 @@ static void rate_control_simple_rate_init(void *priv, void *priv_sta,
int i;
sta->txrate = 0;
mode = local->oper_hw_mode;
/* TODO: what is a good starting rate for STA? About middle? Maybe not
* the lowest or the highest rate.. Could consider using RSSI from
* previous packets? Need to have IEEE 802.1X auth succeed immediately
* after assoc.. */
/* TODO: This routine should consider using RSSI from previous packets
* as we need to have IEEE 802.1X auth succeed immediately after assoc..
* Until that method is implemented, we will use the lowest supported rate
* as a workaround, */
for (i = 0; i < mode->num_rates; i++) {
if ((sta->supp_rates & BIT(i)) &&
(mode->rates[i].flags & IEEE80211_RATE_SUPPORTED))
(mode->rates[i].flags & IEEE80211_RATE_SUPPORTED)) {
sta->txrate = i;
break;
}
}
}

Expand Down

0 comments on commit 005256b

Please sign in to comment.