]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
at86rf230: remove invalid backoff exponent check
authorAlexander Aring <alex.aring@gmail.com>
Wed, 12 Nov 2014 02:37:00 +0000 (03:37 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 12 Nov 2014 04:10:41 +0000 (05:10 +0100)
This patch removes the invalid backoff exponent check from driver layer.
This is already handled by nl802154.

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

index f9e3bce8d63b020b4d51af1eb919fffde9428430..05d4f8f2fc44c157046e6ebd6d2fdbb38c5aa872 100644 (file)
@@ -1167,7 +1167,7 @@ at86rf230_set_csma_params(struct ieee802154_hw *hw, u8 min_be, u8 max_be,
        struct at86rf230_local *lp = hw->priv;
        int rc;
 
-       if (min_be > max_be || max_be > 8 || retries > 5)
+       if (retries > 5)
                return -EINVAL;
 
        rc = at86rf230_write_subreg(lp, SR_MIN_BE, min_be);