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>
This commit is contained in:

gecommit door
David S. Miller

bovenliggende
020f3d0001
commit
860621347e
@@ -1000,9 +1000,8 @@ static int lbs_mesh_set_freq(struct net_device *dev,
|
||||
else if (priv->mode == IW_MODE_ADHOC)
|
||||
lbs_stop_adhoc_network(priv);
|
||||
}
|
||||
priv->curbssparams.channel = fwrq->m;
|
||||
lbs_mesh_config(priv, 0);
|
||||
lbs_mesh_config(priv, 1);
|
||||
lbs_mesh_config(priv, 1, fwrq->m);
|
||||
lbs_update_channel(priv);
|
||||
ret = 0;
|
||||
|
||||
out:
|
||||
@@ -2010,7 +2009,7 @@ static int lbs_mesh_set_essid(struct net_device *dev,
|
||||
priv->mesh_ssid_len = dwrq->length;
|
||||
}
|
||||
|
||||
lbs_mesh_config(priv, 1);
|
||||
lbs_mesh_config(priv, 1, priv->curbssparams.channel);
|
||||
out:
|
||||
lbs_deb_leave_args(LBS_DEB_WEXT, "ret %d", ret);
|
||||
return ret;
|
||||
|
Verwijs in nieuw issue
Block a user