Skip to content

Commit

Permalink
libertas: Add libertas_disablemesh module parameter to disable mesh i…
Browse files Browse the repository at this point in the history
…nterface

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: Sascha Silbe <silbe@activitycentral.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Sascha Silbe authored and John W. Linville committed May 11, 2011
1 parent a8c4856 commit 6bdbdbf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion drivers/net/wireless/libertas/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 6bdbdbf

Please sign in to comment.