mac802154: add IEEE802154_HW_ARET hw flag
authorAlexander Aring <alex.aring@gmail.com>
Wed, 29 Oct 2014 20:34:30 +0000 (21:34 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 29 Oct 2014 22:07:44 +0000 (23:07 +0100)
This patch adds a new IEEE802154_HW_ARET hardware flag for indicating
that the transceiver supports ARET handling. Also remove the
IEEE802154_HW_FRAME_RETRIES from IEEE802154_HW_CSMA flag. Frame retries
handling is part of ARET.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c
include/net/mac802154.h

index b83ad0b386885a609819408e427704ba35aa6a55..005458821c5d7ebbadf42ac4c27b14842430d3c8 100644 (file)
@@ -1387,7 +1387,7 @@ at86rf230_detect_device(struct at86rf230_local *lp)
 
        lp->hw->extra_tx_headroom = 0;
        lp->hw->flags = IEEE802154_HW_OMIT_CKSUM | IEEE802154_HW_AACK |
-                        IEEE802154_HW_TXPOWER | IEEE802154_HW_CSMA;
+                       IEEE802154_HW_TXPOWER | IEEE802154_HW_ARET;
 
        switch (part) {
        case 2:
index fe1495796ce78a7ab5246c4790a0f36a716c9904..c5d79384847a35e86f98c6100dc0cccfbf204980 100644 (file)
@@ -94,7 +94,10 @@ struct ieee802154_hw {
 /* This groups the most common CSMA support fields into one. */
 #define IEEE802154_HW_CSMA             (IEEE802154_HW_CCA_MODE | \
                                         IEEE802154_HW_CCA_ED_LEVEL | \
-                                        IEEE802154_HW_CSMA_PARAMS | \
+                                        IEEE802154_HW_CSMA_PARAMS)
+
+/* This groups the most common ARET support fields into one. */
+#define IEEE802154_HW_ARET             (IEEE802154_HW_CSMA | \
                                         IEEE802154_HW_FRAME_RETRIES)
 
 /* struct ieee802154_ops - callbacks from mac802154 to the driver