Bugzilla – Bug 1300
HalfDuplexIdalPhy does not tell SpectrumInterference when AbortRx happens
Last modified: 2011-11-23 11:11:57 UTC
On 11/18/2011 05:22 PM, Kirill And wrote: > Hi all! > > > I have observed the following: > > HalfDuplexIdalPhy does not tell anything to SpectrumInterference when > AbortRx happens. > > After this the following may happen: > 1. SpectrumInterference is still in RX state > 2. The next time ConditionallyEvaluateChunk is invoked, > m_allSignals, m_rxSignal are not meaningful, and the following line > in SpectrumInterference::ConditionallyEvaluateChunk () method: > SpectrumValue sinr = (*m_rxSignal) / ((*m_allSignals) - > (*m_rxSignal) + (*m_noise)); > may give a strange result. > > Am I right? > > Maybe add m_interference.AbortRx () each time we really abort receiving a > signal? >
Hi Kirill, I agree with your proposal of adding a SpectrumInterference::AbortRx () method. Could you please provide a patch?
Created attachment 1272 [details] Proposed fix Sorry that did not send with my first mail.
Thanks Kirill! I agree with the proposed patch. Feel free to push it at your earliest convenience.
Fixed. Changeset 967156fc3b7f