diff options
author | Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de> | 2014-02-17 05:34:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-02-17 16:42:39 -0500 |
commit | 4244db1b0b7bc9ab7b67d8c1c38de6cf15bc87a8 (patch) | |
tree | c729b4b8546421f0f17fd5e9bee0820e2335882d /include/linux/nl802154.h | |
parent | 7dcbd22a97eb0689e6c583ad630ae0e7341e34c1 (diff) |
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>
Diffstat (limited to 'include/linux/nl802154.h')
-rw-r--r-- | include/linux/nl802154.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/nl802154.h b/include/linux/nl802154.h index 0594a0ae71ba..e110b8c266f5 100644 --- a/include/linux/nl802154.h +++ b/include/linux/nl802154.h | |||
@@ -74,6 +74,11 @@ enum { | |||
74 | IEEE802154_ATTR_LBT_ENABLED, | 74 | IEEE802154_ATTR_LBT_ENABLED, |
75 | IEEE802154_ATTR_CCA_MODE, | 75 | IEEE802154_ATTR_CCA_MODE, |
76 | IEEE802154_ATTR_CCA_ED_LEVEL, | 76 | IEEE802154_ATTR_CCA_ED_LEVEL, |
77 | IEEE802154_ATTR_CSMA_RETRIES, | ||
78 | IEEE802154_ATTR_CSMA_MIN_BE, | ||
79 | IEEE802154_ATTR_CSMA_MAX_BE, | ||
80 | |||
81 | IEEE802154_ATTR_FRAME_RETRIES, | ||
77 | 82 | ||
78 | __IEEE802154_ATTR_MAX, | 83 | __IEEE802154_ATTR_MAX, |
79 | }; | 84 | }; |