ieee802154: add netlink APIs for smartMAC configuration
Introduce new netlink attributes for SET_PHY_ATTRS: * CSMA minimal backoff exponent * CSMA maximal backoff exponent * CSMA retry limit * frame retransmission limit The CSMA attributes shall correspond to minBE, maxBE and maxCSMABackoffs of 802.15.4, respectively. The frame retransmission shall correspond to maxFrameRetries of 802.15.4, unless given as -1: then the old behaviour of the stack shall apply. For RF2xy, the old behaviour is to not do channel sensing at all and simply send *right now*, which is not intended behaviour for most applications and actually prohibited for some channel/page combinations. For all values except frame retransmission limit, the defaults of 802.15.4 apply. Frame retransmission limits are set to -1 to indicate backward-compatible behaviour. Signed-off-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
7dcbd22a97
commit
4244db1b0b
@@ -169,6 +169,12 @@ struct wpan_phy *wpan_phy_alloc(size_t priv_size)
|
||||
phy->current_channel = -1; /* not initialised */
|
||||
phy->current_page = 0; /* for compatibility */
|
||||
|
||||
/* defaults per 802.15.4-2011 */
|
||||
phy->min_be = 3;
|
||||
phy->max_be = 5;
|
||||
phy->csma_retries = 4;
|
||||
phy->frame_retries = -1; /* for compatibility, actual default is 3 */
|
||||
|
||||
return phy;
|
||||
|
||||
out:
|
||||
|
Reference in New Issue
Block a user