cfg80211.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef __NET_CFG80211_H
  2. #define __NET_CFG80211_H
  3. #include <linux/netlink.h>
  4. #include <linux/skbuff.h>
  5. #include <net/genetlink.h>
  6. /*
  7. * 802.11 configuration in-kernel interface
  8. *
  9. * Copyright 2006 Johannes Berg <johannes@sipsolutions.net>
  10. */
  11. /* from net/wireless.h */
  12. struct wiphy;
  13. /**
  14. * struct cfg80211_ops - backend description for wireless configuration
  15. *
  16. * This struct is registered by fullmac card drivers and/or wireless stacks
  17. * in order to handle configuration requests on their interfaces.
  18. *
  19. * All callbacks except where otherwise noted should return 0
  20. * on success or a negative error code.
  21. *
  22. * All operations are currently invoked under rtnl for consistency with the
  23. * wireless extensions but this is subject to reevaluation as soon as this
  24. * code is used more widely and we have a first user without wext.
  25. *
  26. * @add_virtual_intf: create a new virtual interface with the given name
  27. *
  28. * @del_virtual_intf: remove the virtual interface determined by ifindex.
  29. */
  30. struct cfg80211_ops {
  31. int (*add_virtual_intf)(struct wiphy *wiphy, char *name,
  32. unsigned int type);
  33. int (*del_virtual_intf)(struct wiphy *wiphy, int ifindex);
  34. };
  35. #endif /* __NET_CFG80211_H */