/* * mac80211 configuration hooks for cfg80211 * * Copyright 2006-2010 Johannes Berg <johannes@sipsolutions.net> * * This file is GPLv2 as found in COPYING. */#include<linux/ieee80211.h>#include<linux/nl80211.h>#include<linux/rtnetlink.h>#include<linux/slab.h>#include<net/net_namespace.h>#include<linux/rcupdate.h>#include<net/cfg80211.h>#include"ieee80211_i.h"#include"driver-ops.h"#include"cfg.h"#include"rate.h"#include"mesh.h"staticboolnl80211_type_check(enumnl80211_iftypetype){switch(type){caseNL80211_IFTYPE_ADHOC:caseNL80211_IFTYPE_STATION:caseNL80211_IFTYPE_MONITOR:#ifdef CONFIG_MAC80211_MESHcaseNL80211_IFTYPE_MESH_POINT:#endifcaseNL80211_IFTYPE_AP:caseNL80211_IFTYPE_AP_VLAN:caseNL80211_IFTYPE_WDS:returntrue;