[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a bug in wireless-phy.cc??
I think the code is right but the comment is not appropriate. The
receiver still costs energy even though it only receives noise.
-Ya
> " /*
> * Decrease energy if packet successfully received
> */"
>
> so I suggest to add "goto DONE" in if ( Pr < RXThresh_ ) clause as follows:
>
> if (Pr < RXThresh_) {
> /*
> * We can detect, but not successfully receive
> * this packet.
> */
>
> /* suggested fix: should add the following*/
>
> goto DONE;
>
> }
>
>
> Did I miss something? any comments?
>
> Thanks!
> yan
>