cfg.c 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* This program is free software; you can redistribute it and/or modify
  2. * it under the terms of the GNU General Public License version 2
  3. * as published by the Free Software Foundation.
  4. *
  5. * This program is distributed in the hope that it will be useful,
  6. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  7. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8. * GNU General Public License for more details.
  9. *
  10. * Authors:
  11. * Alexander Aring <aar@pengutronix.de>
  12. *
  13. * Based on: net/mac80211/cfg.c
  14. */
  15. #include <net/cfg802154.h>
  16. #include "ieee802154_i.h"
  17. #include "cfg.h"
  18. static struct net_device *
  19. ieee802154_add_iface_deprecated(struct wpan_phy *wpan_phy,
  20. const char *name, int type)
  21. {
  22. return mac802154_add_iface(wpan_phy, name, type);
  23. }
  24. static void ieee802154_del_iface_deprecated(struct wpan_phy *wpan_phy,
  25. struct net_device *dev)
  26. {
  27. mac802154_del_iface(wpan_phy, dev);
  28. }
  29. const struct cfg802154_ops mac802154_config_ops = {
  30. .add_virtual_intf_deprecated = ieee802154_add_iface_deprecated,
  31. .del_virtual_intf_deprecated = ieee802154_del_iface_deprecated,
  32. };