]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ieee802154/wpan-class.c
ieee802154: add netlink APIs for smartMAC configuration
[karo-tx-linux.git] / net / ieee802154 / wpan-class.c
index 8d6f6704da84e8b95745cedb7040230cb5b96cb1..edd0962d55f9a14a18c8901ffa0fa32432c1fcf6 100644 (file)
@@ -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: