X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/8dee2fd6c4eb6a254842a264b527c4866eaa5ab3..fb9f9cdc813406041715d4c692f2b18cfd418cee:/package/madwifi/patches/452-minstrel_no_timer.patch?ds=sidebyside diff --git a/package/madwifi/patches/452-minstrel_no_timer.patch b/package/madwifi/patches/452-minstrel_no_timer.patch index e7f2deac1..f0f5c26f9 100644 --- a/package/madwifi/patches/452-minstrel_no_timer.patch +++ b/package/madwifi/patches/452-minstrel_no_timer.patch @@ -27,12 +27,12 @@ #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,52)) -@@ -204,6 +202,11 @@ ath_rate_findrate(struct ath_softc *sc, +@@ -204,6 +202,11 @@ ath_rate_findrate(struct ath_softc *sc, unsigned int ndx, offset; int mrr; + -+ if (sn->last_update + msecs_to_jiffies(TIMER_INTERVAL) < jiffies) { ++ if (abs(jiffies - sn->last_update) > msecs_to_jiffies(TIMER_INTERVAL)) { + ath_rate_statistics(&an->an_node); + sn->last_update = jiffies; + }