提交 6bdbdbf4 编写于 作者: S Sascha Silbe 提交者: John W. Linville

libertas: Add libertas_disablemesh module parameter to disable mesh interface

This allows individual users and deployments to disable mesh support at
runtime, i.e. without having to build and maintain a custom kernel.

Based on a patch by Paul Fox <pgf@laptop.org>.
Signed-off-by: NSascha Silbe <silbe@activitycentral.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 a8c48565
......@@ -36,6 +36,10 @@ unsigned int lbs_debug;
EXPORT_SYMBOL_GPL(lbs_debug);
module_param_named(libertas_debug, lbs_debug, int, 0644);
unsigned int lbs_disablemesh;
EXPORT_SYMBOL_GPL(lbs_disablemesh);
module_param_named(libertas_disablemesh, lbs_disablemesh, int, 0644);
/*
* This global structure is used to send the confirm_sleep command as
......@@ -944,7 +948,10 @@ int lbs_start_card(struct lbs_private *priv)
lbs_update_channel(priv);
lbs_init_mesh(priv);
if (!lbs_disablemesh)
lbs_init_mesh(priv);
else
pr_info("%s: mesh disabled\n", dev->name);
lbs_debugfs_init_one(priv, dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册