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