[cooja/mspsim] Msp802154Radio: Fix maximum power indicator

Previously getOutputPowerIndicatorMax() returned the fixed value 31.
This is valid for e.g. the mspsim CC2420 radio implementation but not for the CC2520 implementation where the maximum returned value is 9.

Thus to fix transmission range issues (for example for Wismote node) the maxium value provided by the radio implementaiton must be used.
This commit is contained in:
Enrico Joerns 2014-10-05 00:38:49 +02:00
parent fd5e79d0db
commit 9d27b181c1

View file

@ -332,7 +332,7 @@ public class Msp802154Radio extends Radio implements CustomDataRadio {
}
public int getOutputPowerIndicatorMax() {
return 31;
return radio.getOutputPowerIndicatorMax();
}
/**