radio connection update: radio should not be removed from destinations, but instead flagged as interfered
This commit is contained in:
parent
45d23c026e
commit
24d0330d2d
|
@ -26,7 +26,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: MRM.java,v 1.10 2009/10/27 10:14:09 fros4943 Exp $
|
||||
* $Id: MRM.java,v 1.11 2009/11/25 15:43:03 fros4943 Exp $
|
||||
*/
|
||||
|
||||
package se.sics.mrm;
|
||||
|
@ -148,10 +148,9 @@ public class MRM extends AbstractRadioMedium {
|
|||
}
|
||||
}
|
||||
if (existingConn != null) {
|
||||
// Change radio from receiving to interfered
|
||||
existingConn.removeDestination(listeningRadio);
|
||||
/* Flag radio as interfered */
|
||||
existingConn.addInterfered(listeningRadio);
|
||||
|
||||
listeningRadio.interfereAnyReception();
|
||||
}
|
||||
} else {
|
||||
// Radio OK to receive
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: DirectedGraphMedium.java,v 1.3 2009/10/27 10:10:03 fros4943 Exp $
|
||||
* $Id: DirectedGraphMedium.java,v 1.4 2009/11/25 15:44:04 fros4943 Exp $
|
||||
*/
|
||||
|
||||
package se.sics.cooja.radiomediums;
|
||||
|
@ -318,7 +318,6 @@ public class DirectedGraphMedium extends AbstractRadioMedium {
|
|||
}
|
||||
}
|
||||
if (otherConnection != null) {
|
||||
otherConnection.removeDestination(dest.radio);
|
||||
otherConnection.addInterfered(dest.radio);
|
||||
}
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue