[WIRELESS] cfg80211: New wireless config infrastructure.
[linux-2.6.22.y-op.git] / include / net / cfg80211.h
blob783a11437a57ad9155e76e40f2838458ab2baaa9
1 #ifndef __NET_CFG80211_H
2 #define __NET_CFG80211_H
4 #include <linux/netlink.h>
5 #include <linux/skbuff.h>
6 #include <net/genetlink.h>
8 /*
9 * 802.11 configuration in-kernel interface
11 * Copyright 2006 Johannes Berg <johannes@sipsolutions.net>
14 /* from net/wireless.h */
15 struct wiphy;
17 /**
18 * struct cfg80211_ops - backend description for wireless configuration
20 * This struct is registered by fullmac card drivers and/or wireless stacks
21 * in order to handle configuration requests on their interfaces.
23 * All callbacks except where otherwise noted should return 0
24 * on success or a negative error code.
26 * @add_virtual_intf: create a new virtual interface with the given name
28 * @del_virtual_intf: remove the virtual interface determined by ifindex.
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);
36 #endif /* __NET_CFG80211_H */