diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-13 00:32:36 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:07:07 -0500 |
commit | 860621347e88b23517fc4ec93fa5af940401c3ec (patch) | |
tree | 059223640a79bfe60f0dd9fe3c15d5656cac740a /drivers/net/wireless/libertas/cmd.c | |
parent | 020f3d0001cb249ceae623c1a7ae0c196326ef3f (diff) |
libertas: pass channel argument directly to lbs_mesh_config()
There is weirdness here; the firmware seems to refuse to change channels
at will.
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.c')
-rw-r--r-- | drivers/net/wireless/libertas/cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c index c4299ae1774e..171acc27ffba 100644 --- a/drivers/net/wireless/libertas/cmd.c +++ b/drivers/net/wireless/libertas/cmd.c | |||
@@ -1114,13 +1114,13 @@ int lbs_mesh_access(struct lbs_private *priv, uint16_t cmd_action, | |||
1114 | } | 1114 | } |
1115 | EXPORT_SYMBOL_GPL(lbs_mesh_access); | 1115 | EXPORT_SYMBOL_GPL(lbs_mesh_access); |
1116 | 1116 | ||
1117 | int lbs_mesh_config(struct lbs_private *priv, int enable) | 1117 | int lbs_mesh_config(struct lbs_private *priv, uint16_t enable, uint16_t chan) |
1118 | { | 1118 | { |
1119 | struct cmd_ds_mesh_config cmd; | 1119 | struct cmd_ds_mesh_config cmd; |
1120 | 1120 | ||
1121 | memset(&cmd, 0, sizeof(cmd)); | 1121 | memset(&cmd, 0, sizeof(cmd)); |
1122 | cmd.action = cpu_to_le16(enable); | 1122 | cmd.action = cpu_to_le16(enable); |
1123 | cmd.channel = cpu_to_le16(priv->curbssparams.channel); | 1123 | cmd.channel = cpu_to_le16(chan); |
1124 | cmd.type = cpu_to_le16(priv->mesh_tlv); | 1124 | cmd.type = cpu_to_le16(priv->mesh_tlv); |
1125 | 1125 | ||
1126 | if (enable) { | 1126 | if (enable) { |
@@ -1128,7 +1128,7 @@ int lbs_mesh_config(struct lbs_private *priv, int enable) | |||
1128 | memcpy(cmd.data, priv->mesh_ssid, priv->mesh_ssid_len); | 1128 | memcpy(cmd.data, priv->mesh_ssid, priv->mesh_ssid_len); |
1129 | } | 1129 | } |
1130 | lbs_deb_cmd("mesh config enable %d TLV %x channel %d SSID %s\n", | 1130 | lbs_deb_cmd("mesh config enable %d TLV %x channel %d SSID %s\n", |
1131 | enable, priv->mesh_tlv, priv->curbssparams.channel, | 1131 | enable, priv->mesh_tlv, chan, |
1132 | escape_essid(priv->mesh_ssid, priv->mesh_ssid_len)); | 1132 | escape_essid(priv->mesh_ssid, priv->mesh_ssid_len)); |
1133 | return lbs_cmd_with_response(priv, CMD_MESH_CONFIG, &cmd); | 1133 | return lbs_cmd_with_response(priv, CMD_MESH_CONFIG, &cmd); |
1134 | } | 1134 | } |