Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122508
b: refs/heads/master
c: 42c8285
h: refs/heads/master
v: v3
  • Loading branch information
Ivo van Doorn authored and John W. Linville committed Dec 5, 2008
1 parent 98e71f2 commit 067a6d8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 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: 1ce9cdac482f0dfbbd22ba4b3e5c016a05543a42
refs/heads/master: 42c8285767dd17f450d986bdb163a8d56fb0330a
6 changes: 6 additions & 0 deletions trunk/drivers/net/wireless/rt2x00/rt2x00.h
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,12 @@ struct rt2x00_dev {
*/
u16 tx_power;

/*
* Current retry values.
*/
u8 short_retry;
u8 long_retry;

/*
* Rssi <-> Dbm offset
*/
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/net/wireless/rt2x00/rt2x00config.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ void rt2x00lib_config(struct rt2x00_dev *rt2x00dev,

rt2x00dev->curr_band = conf->channel->band;
rt2x00dev->tx_power = conf->power_level;
rt2x00dev->short_retry = conf->short_frame_max_tx_count;
rt2x00dev->long_retry = conf->long_frame_max_tx_count;

rt2x00dev->rx_status.band = conf->channel->band;
rt2x00dev->rx_status.freq = conf->channel->center_freq;
Expand Down
9 changes: 1 addition & 8 deletions trunk/drivers/net/wireless/rt2x00/rt2x00queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,7 @@ static void rt2x00queue_create_tx_descriptor(struct queue_entry *entry,
* Determine retry information.
*/
txdesc->retry_limit = tx_info->control.rates[0].count - 1;
/*
* XXX: If at this point we knew whether the HW is going to use
* the RETRY_MODE bit or the retry_limit (currently all
* use the RETRY_MODE bit) we could do something like b43
* does, set the RETRY_MODE bit when the RC algorithm is
* requesting more than the long retry limit.
*/
if (tx_info->control.rates[0].flags & IEEE80211_TX_RC_USE_RTS_CTS)
if (txdesc->retry_limit >= rt2x00dev->long_retry)
__set_bit(ENTRY_TXD_RETRY_MODE, &txdesc->flags);

/*
Expand Down

0 comments on commit 067a6d8

Please sign in to comment.