alistair23-linux/include/net/cfg80211.h
Johannes Berg 704232c271 [WIRELESS] cfg80211: New wireless config infrastructure.
This patch creates the core cfg80211 code along with some sysfs bits.
This is a stripped down version to allow mac80211 to function, but
doesn't include any configuration yet except for creating and removing
virtual interfaces.

This patch includes the nl80211 header file but it only contains the
interface types which the cfg80211 interface for creating virtual
interfaces relies on.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2007-04-25 22:29:41 -07:00

37 lines
973 B
C

#ifndef __NET_CFG80211_H
#define __NET_CFG80211_H
#include <linux/netlink.h>
#include <linux/skbuff.h>
#include <net/genetlink.h>
/*
* 802.11 configuration in-kernel interface
*
* Copyright 2006 Johannes Berg <johannes@sipsolutions.net>
*/
/* from net/wireless.h */
struct wiphy;
/**
* struct cfg80211_ops - backend description for wireless configuration
*
* This struct is registered by fullmac card drivers and/or wireless stacks
* in order to handle configuration requests on their interfaces.
*
* All callbacks except where otherwise noted should return 0
* on success or a negative error code.
*
* @add_virtual_intf: create a new virtual interface with the given name
*
* @del_virtual_intf: remove the virtual interface determined by ifindex.
*/
struct cfg80211_ops {
int (*add_virtual_intf)(struct wiphy *wiphy, char *name,
unsigned int type);
int (*del_virtual_intf)(struct wiphy *wiphy, int ifindex);
};
#endif /* __NET_CFG80211_H */