| Date: | 2010-01-29 03:49:13 (3 years 3 months ago) |
|---|---|
| Author: | nbd |
| Commit: | 2dab34dc0040b439d094eaa093a88d72d0eea1a9 |
| Message: | madwifi: make sure that minstrel rc updates still work after a
jiffies wraparound git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19377 3c298f89-4303-0410-b956-a3cf2f4a3e73 |
| Files: |
package/madwifi/patches/452-minstrel_no_timer.patch (1 diff) |
Change Details
| package/madwifi/patches/452-minstrel_no_timer.patch | ||
|---|---|---|
| 32 | 32 | int mrr; |
| 33 | 33 | |
| 34 | 34 | + |
| 35 | + if (sn->last_update + msecs_to_jiffies(TIMER_INTERVAL) < jiffies) { | |
| 35 | + if (abs(jiffies - sn->last_update) > msecs_to_jiffies(TIMER_INTERVAL)) { | |
| 36 | 36 | + ath_rate_statistics(&an->an_node); |
| 37 | 37 | + sn->last_update = jiffies; |
| 38 | 38 | + } |
