Commit:     725d99d4660fcd9abe37d7b733c9412a58465d13
Parent:     79010420cc3f78eab911598bfdd29c4b06a83e1f
Author:     Ivo van Doorn <[EMAIL PROTECTED]>
AuthorDate: Tue Sep 25 20:53:20 2007 +0200
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:53:01 2007 -0700

    [PATCH] rt2x00: Correct error in calculating rssi for link tuner
    The call to rt2x00lib_precalculate_link_signal resets link.rx_success
    which is needed when calculating the average rssi for the link
    tuner. Change the call order so the link tuner runs first as it
    doesn't need the result of the precalculate.
    Signed-off-by: Adam Baker <[EMAIL PROTECTED]>
    Signed-off-by: Ivo van Doorn <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
 drivers/net/wireless/rt2x00/rt2x00dev.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c 
index bbccb89..4f66adc 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)
        rt2x00dev->low_level_stats.dot11FCSErrorCount +=
-       rt2x00lib_precalculate_link_signal(&rt2x00dev->link);
         * Only perform the link tuning when Link tuning
         * has been enabled (This could have been disabled from the EEPROM).
@@ -252,6 +250,12 @@ static void rt2x00lib_link_tuner(struct work_struct *work)
+        * Precalculate a portion of the link signal which is
+        * in based on the tx/rx success/failure counters.
+        */
+       rt2x00lib_precalculate_link_signal(&rt2x00dev->link);
+       /*
         * Increase tuner counter, and reschedule the next link tuner run.
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to