aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00dev.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
index bbccb893387..4f66adc5b09 100644
--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
@@ -242,8 +242,6 @@ static void rt2x00lib_link_tuner(struct work_struct *work)
242 rt2x00dev->low_level_stats.dot11FCSErrorCount += 242 rt2x00dev->low_level_stats.dot11FCSErrorCount +=
243 rt2x00dev->link.rx_failed; 243 rt2x00dev->link.rx_failed;
244 244
245 rt2x00lib_precalculate_link_signal(&rt2x00dev->link);
246
247 /* 245 /*
248 * Only perform the link tuning when Link tuning 246 * Only perform the link tuning when Link tuning
249 * has been enabled (This could have been disabled from the EEPROM). 247 * has been enabled (This could have been disabled from the EEPROM).
@@ -252,6 +250,12 @@ static void rt2x00lib_link_tuner(struct work_struct *work)
252 rt2x00dev->ops->lib->link_tuner(rt2x00dev); 250 rt2x00dev->ops->lib->link_tuner(rt2x00dev);
253 251
254 /* 252 /*
253 * Precalculate a portion of the link signal which is
254 * in based on the tx/rx success/failure counters.
255 */
256 rt2x00lib_precalculate_link_signal(&rt2x00dev->link);
257
258 /*
255 * Increase tuner counter, and reschedule the next link tuner run. 259 * Increase tuner counter, and reschedule the next link tuner run.
256 */ 260 */
257 rt2x00dev->link.count++; 261 rt2x00dev->link.count++;