Commit 0a0d08ac authored by Luis Carlos Cobo Rus's avatar Luis Carlos Cobo Rus Committed by John W. Linville

[PATCH] libertas: make mac address configuration work with mesh interface too

Signed-off-by: default avatarLuis Carlos Cobo Rus <luiscarlos@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent a23c58a3
...@@ -465,6 +465,9 @@ static int wlan_set_mac_address(struct net_device *dev, void *addr) ...@@ -465,6 +465,9 @@ static int wlan_set_mac_address(struct net_device *dev, void *addr)
lbs_deb_enter(LBS_DEB_NET); lbs_deb_enter(LBS_DEB_NET);
/* In case it was called from the mesh device */
dev = priv->dev ;
memset(adapter->current_addr, 0, ETH_ALEN); memset(adapter->current_addr, 0, ETH_ALEN);
/* dev->dev_addr is 8 bytes */ /* dev->dev_addr is 8 bytes */
...@@ -914,6 +917,7 @@ int libertas_add_mesh(wlan_private *priv, struct device *dev) ...@@ -914,6 +917,7 @@ int libertas_add_mesh(wlan_private *priv, struct device *dev)
mesh_dev->stop = mesh_close; mesh_dev->stop = mesh_close;
mesh_dev->do_ioctl = libertas_do_ioctl; mesh_dev->do_ioctl = libertas_do_ioctl;
mesh_dev->get_stats = wlan_get_stats; mesh_dev->get_stats = wlan_get_stats;
mesh_dev->set_mac_address = wlan_set_mac_address;
mesh_dev->ethtool_ops = &libertas_ethtool_ops; mesh_dev->ethtool_ops = &libertas_ethtool_ops;
memcpy(mesh_dev->dev_addr, priv->dev->dev_addr, memcpy(mesh_dev->dev_addr, priv->dev->dev_addr,
sizeof(priv->dev->dev_addr)); sizeof(priv->dev->dev_addr));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment