diff options
Diffstat (limited to 'patches/collateral-evolutions/network')
-rw-r--r-- | patches/collateral-evolutions/network/0066-remove-netdev_ieee802154_ptr/cfg802154.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/patches/collateral-evolutions/network/0066-remove-netdev_ieee802154_ptr/cfg802154.patch b/patches/collateral-evolutions/network/0066-remove-netdev_ieee802154_ptr/cfg802154.patch new file mode 100644 index 00000000..25bf812f --- /dev/null +++ b/patches/collateral-evolutions/network/0066-remove-netdev_ieee802154_ptr/cfg802154.patch @@ -0,0 +1,18 @@ +--- a/include/net/cfg802154.h ++++ b/include/net/cfg802154.h +@@ -359,6 +359,7 @@ struct wpan_dev { + + #define to_phy(_dev) container_of(_dev, struct wpan_phy, dev) + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0) + static inline int + wpan_dev_hard_header(struct sk_buff *skb, struct net_device *dev, + const struct ieee802154_addr *daddr, +@@ -369,6 +370,7 @@ wpan_dev_hard_header(struct sk_buff *skb + + return wpan_dev->header_ops->create(skb, dev, daddr, saddr, len); + } ++#endif /* >= 3.19 */ + + struct wpan_phy * + wpan_phy_new(const struct cfg802154_ops *ops, size_t priv_size); |