Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134156
b: refs/heads/master
c: 6642fe6
h: refs/heads/master
v: v3
  • Loading branch information
Sujith authored and John W. Linville committed Jan 29, 2009
1 parent c30434e commit d8c2b1f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 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: 9aed3cc124343d92be6697e9af3928bdfe8eb03e
refs/heads/master: 6642fe6f5d033128086c8b64737780454e53625e
13 changes: 0 additions & 13 deletions trunk/drivers/net/wireless/ath9k/rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

static struct ath_rate_table ar5416_11na_ratetable = {
42,
{0},
{
{ VALID, VALID, WLAN_RC_PHY_OFDM, 6000, /* 6 Mb */
5400, 0x0b, 0x00, 12,
Expand Down Expand Up @@ -158,7 +157,6 @@ static struct ath_rate_table ar5416_11na_ratetable = {

static struct ath_rate_table ar5416_11ng_ratetable = {
46,
{0},
{
{ VALID_ALL, VALID_ALL, WLAN_RC_PHY_CCK, 1000, /* 1 Mb */
900, 0x1b, 0x00, 2,
Expand Down Expand Up @@ -306,7 +304,6 @@ static struct ath_rate_table ar5416_11ng_ratetable = {

static struct ath_rate_table ar5416_11a_ratetable = {
8,
{0},
{
{ VALID, VALID, WLAN_RC_PHY_OFDM, 6000, /* 6 Mb */
5400, 0x0b, 0x00, (0x80|12),
Expand Down Expand Up @@ -340,7 +337,6 @@ static struct ath_rate_table ar5416_11a_ratetable = {

static struct ath_rate_table ar5416_11g_ratetable = {
12,
{0},
{
{ VALID, VALID, WLAN_RC_PHY_CCK, 1000, /* 1 Mb */
900, 0x1b, 0x00, 2,
Expand Down Expand Up @@ -386,7 +382,6 @@ static struct ath_rate_table ar5416_11g_ratetable = {

static struct ath_rate_table ar5416_11b_ratetable = {
4,
{0},
{
{ VALID, VALID, WLAN_RC_PHY_CCK, 1000, /* 1 Mb */
900, 0x1b, 0x00, (0x80|2),
Expand Down Expand Up @@ -1607,16 +1602,8 @@ static void ath_setup_rate_table(struct ath_softc *sc,
{
int i;

for (i = 0; i < 256; i++)
rate_table->rateCodeToIndex[i] = (u8)-1;

for (i = 0; i < rate_table->rate_cnt; i++) {
u8 code = rate_table->info[i].ratecode;
u8 cix = rate_table->info[i].ctrl_rate;
u8 sh = rate_table->info[i].short_preamble;

rate_table->rateCodeToIndex[code] = i;
rate_table->rateCodeToIndex[code | sh] = i;

rate_table->info[i].lpAckDuration =
ath9k_hw_computetxtime(sc->sc_ah, rate_table,
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/wireless/ath9k/rc.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ struct ath_softc;
*/
struct ath_rate_table {
int rate_cnt;
u8 rateCodeToIndex[256];
struct {
int valid;
int valid_single_stream;
Expand Down

0 comments on commit d8c2b1f

Please sign in to comment.