[ns] [bug] wireless-phyExt.cc

Ali Ghandour ghandour.aub at gmail.com
Mon Sep 6 03:22:40 PDT 2010


[Bug Report]

-----------------------------
Category:  Other
Package:   ns ns-2.34
OS:        Fedora 9
Environment Variables:
LD_LIBRARY_PATH=
TCL_LIBRARY=
TK_LIBRARY=


-----------------------------
Description:

Description of Problem:

In the wireless-phyExt.cc line 443-8:

if ( state == SEARCHING && newstate != SEARCHING ) {
       // indicate MAC busy since we are either receiving or sending
       // only if we have not been busy already
       if (powerMonitor->getPowerLevel() < CSThresh_) {
               sendCSBusyIndication();
       }


In line 446, if the power level is less then the carrier sense threhold, a busy flag is raised. However, we should check if the power level is greater than CSThresh_.

Thus, line 446 should be:
if (powerMonitor->getPowerLevel() > CSThresh_)


Regards,
Ali Ghandour





More information about the Ns-users mailing list