From: Felix Fietkau Date: Wed, 3 Nov 2010 00:36:51 +0000 (+0100) Subject: ath9k: check old power mode before clearing cycle counters X-Git-Tag: v2.6.37-rc2~20^2~23^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbb078fcd2fa83646ad9504d8e4c54a67b8729ae;p=pandora-kernel.git ath9k: check old power mode before clearing cycle counters ath9k_ps_wakeup() clears the cycle counters after waking up the hardware using ath9k_hw_setpower, however if power save is disabled, then the counters will contain useful data, which then gets discarded. Fix this by checking the old power mode before discarding any data. Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville --- Reading git-diff-tree failed