diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-10-20 14:01:53 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-10-20 14:01:53 +0000 |
commit | bcb63b9e02655fcf61541edfd053780fce0c67dd (patch) | |
tree | 72b2ca59635ae608047823de5eed59b5641d4058 | |
parent | 0d19cbb9d6fe106629a90c43490c135cb919031c (diff) |
ath9k: fix a crash that happens when survey stats are accessed before the interface is brought up for the first time
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23549 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/mac80211/patches/540-ath9k_fix_survey_crash.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/package/mac80211/patches/540-ath9k_fix_survey_crash.patch b/package/mac80211/patches/540-ath9k_fix_survey_crash.patch new file mode 100644 index 000000000..b627f8f4a --- /dev/null +++ b/package/mac80211/patches/540-ath9k_fix_survey_crash.patch @@ -0,0 +1,12 @@ +--- 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); + |