Bugzilla – Bug 2475
SpectrumAnalyzer does not cancel event when stopped
Last modified: 2016-08-14 11:52:17 EDT
Created attachment 2538 [details]
Test scenario (put it in scratch)
SpectrumAnalyzer does not save EventId of scheduled events. It just sets m_active to false and does not schedule *next* event.
The main problem is that if SpectrumAnalyzer is restarted (stopped and started before scheduled event fires), two SpectrumAnalyzer::GenerateReport are scheduled in parallel and SpectrumAnalyzer generates twice as much output with only half of the points valid (others are just noise power level).
Testcase is attached, bugfix follows.
Created attachment 2539 [details]
Created attachment 2540 [details]
Removed unnecessary IsRunning check before event cancel