rt2x00: Store retry limit values
Store retry limit values in the rt2x00dev structure. This allows the removal of the FIXME where we assumed the long retry is only used when working with RTS frames. Instead we should check the current retry limit values and decide if the required retry count for this frame is a long or short retry. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
1ce9cdac48
commit
42c8285767
@@ -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;
|
||||
|
Reference in New Issue
Block a user