diff options
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 c4299ae1774..171acc27ffb 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 | } |