[PATCH] libertas: make mac address configuration work with mesh interface too
Dan Williams
dcbw at redhat.com
Sun Apr 29 16:57:22 EDT 2007
On Wed, 2007-04-25 at 11:29 -0700, Luis Carlos Cobo Rus wrote:
> ---
> drivers/net/wireless/libertas/main.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
Applied, thanks.
> diff --git a/drivers/net/wireless/libertas/main.c
> b/drivers/net/wireless/libertas/main.c
> index 4d9d54d..fc37e07 100644
> --- a/drivers/net/wireless/libertas/main.c
> +++ b/drivers/net/wireless/libertas/main.c
> @@ -458,6 +458,9 @@ static int wlan_set_mac_address(struct n
> wlan_adapter *adapter = priv->adapter;
> struct sockaddr *phwaddr = addr;
>
> + /* In case it was called from the mesh device */
> + dev = priv->dev ;
> +
> lbs_deb_enter(LBS_DEB_NET);
>
> memset(adapter->current_addr, 0, ETH_ALEN);
> @@ -909,6 +912,7 @@ int libertas_add_mesh(wlan_private *priv
> mesh_dev->stop = mesh_close;
> mesh_dev->do_ioctl = libertas_do_ioctl;
> mesh_dev->get_stats = wlan_get_stats;
> + mesh_dev->set_mac_address = wlan_set_mac_address;
> mesh_dev->ethtool_ops = &libertas_ethtool_ops;
> memcpy(mesh_dev->dev_addr, priv->dev->dev_addr,
> sizeof(priv->dev->dev_addr));
> --
> 1.4.3
>
>
More information about the libertas-dev
mailing list