mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-30 21:15:19 +02:00
13 lines
368 B
Diff
13 lines
368 B
Diff
|
--- a/drivers/net/wireless/ath/ath9k/main.c
|
||
|
+++ b/drivers/net/wireless/ath/ath9k/main.c
|
||
|
@@ -183,6 +183,9 @@ static void ath_update_survey_stats(stru
|
||
|
struct ath_cycle_counters *cc = &common->cc_survey;
|
||
|
unsigned int div = common->clockrate * 1000;
|
||
|
|
||
|
+ if (!ah->curchan)
|
||
|
+ return;
|
||
|
+
|
||
|
if (ah->power_mode == ATH9K_PM_AWAKE)
|
||
|
ath_hw_cycle_counters_update(common);
|
||
|
|