mac802154: introduce IEEE802154_DEV_TO_SUB_IF
[deliverable/linux.git] / net / mac802154 / ieee802154_i.h
index 41e29b00e7a06ea1e7de2c5bb93a7268a805a280..61885aaea6b6567f878216f883d26510733b7b34 100644 (file)
@@ -107,6 +107,12 @@ hw_to_local(struct ieee802154_hw *hw)
        return container_of(hw, struct ieee802154_local, hw);
 }
 
+static inline struct ieee802154_sub_if_data *
+IEEE802154_DEV_TO_SUB_IF(const struct net_device *dev)
+{
+       return netdev_priv(dev);
+}
+
 extern struct ieee802154_reduced_mlme_ops mac802154_mlme_reduced;
 extern struct ieee802154_mlme_ops mac802154_mlme_wpan;
 
This page took 0.028368 seconds and 5 git commands to generate.