linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: Dan Lenski <dlenski@gmail.com>, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] enable setting MAC address for r8723au
Date: Mon, 21 Dec 2015 11:53:28 -0600	[thread overview]
Message-ID: <56783C98.1080700@lwfinger.net> (raw)
In-Reply-To: <1450664916-25205-2-git-send-email-dlenski@gmail.com>

On 12/20/2015 08:28 PM, Dan Lenski wrote:
> Signed-off-by: Dan Lenski <dlenski@gmail.com>

The commit message should be in this patch rather than in the non-patch previous 
mail. If this patch were to be accepted, all that explanation would be lost!

Rather than issuing a warning when the MAC is changed after the interface has 
been brought up, have you considered changing the value of rtw_adapter->bup to 
zero whenever the connection goes down? Would that help with the confusion in 
the user-space tools?

NACK.


Larry

> ---
>   drivers/staging/rtl8723au/os_dep/os_intfs.c | 7 +++++--
>   1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/rtl8723au/os_dep/os_intfs.c b/drivers/staging/rtl8723au/os_dep/os_intfs.c
> index b8848c2..228e19f 100644
> --- a/drivers/staging/rtl8723au/os_dep/os_intfs.c
> +++ b/drivers/staging/rtl8723au/os_dep/os_intfs.c
> @@ -240,8 +240,11 @@ static int rtw_net_set_mac_address(struct net_device *pnetdev, void *p)
>   	struct rtw_adapter *padapter = netdev_priv(pnetdev);
>   	struct sockaddr *addr = p;
>
> -	if (!padapter->bup)
> -		ether_addr_copy(padapter->eeprompriv.mac_addr, addr->sa_data);
> +	if (padapter->bup)
> +		DBG_8723A_LEVEL(_drv_warning_, "Trying to set MAC address while bup =%d\n", padapter->bup);
> +	ether_addr_copy(padapter->eeprompriv.mac_addr, addr->sa_data);
> +	ether_addr_copy(pnetdev->dev_addr, addr->sa_data);
> +
>   	return 0;
>   }
>
>


  reply	other threads:[~2015-12-21 17:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-21  2:28 [PATCH] fix MAC-setting for r8723au Dan Lenski
2015-12-21  2:28 ` [PATCH] enable setting MAC address " Dan Lenski
2015-12-21 17:53   ` Larry Finger [this message]
2015-12-21 18:24     ` Daniel Lenski
2015-12-23 11:18       ` Jes Sorensen
2015-12-24 22:37         ` Daniel Lenski
2015-12-26 10:06           ` Jes Sorensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56783C98.1080700@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=dlenski@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).