提交 10ff57f9 编写于 作者: J Johannes Berg

mac80211: remove a bit of dead mesh code

In a file that's only built when CONFIG_MAC80211_MESH
is defined, having an #ifdef on the same is entirely
pointless, so remove it.
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 051007d9
...@@ -20,16 +20,11 @@ ...@@ -20,16 +20,11 @@
int mesh_allocated; int mesh_allocated;
static struct kmem_cache *rm_cache; static struct kmem_cache *rm_cache;
#ifdef CONFIG_MAC80211_MESH
bool mesh_action_is_path_sel(struct ieee80211_mgmt *mgmt) bool mesh_action_is_path_sel(struct ieee80211_mgmt *mgmt)
{ {
return (mgmt->u.action.u.mesh_action.action_code == return (mgmt->u.action.u.mesh_action.action_code ==
WLAN_MESH_ACTION_HWMP_PATH_SELECTION); WLAN_MESH_ACTION_HWMP_PATH_SELECTION);
} }
#else
bool mesh_action_is_path_sel(struct ieee80211_mgmt *mgmt)
{ return false; }
#endif
void ieee80211s_init(void) void ieee80211s_init(void)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册