netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Kalle Valo <kvalo@qca.qualcomm.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>,
	"Luis R. Rodriguez" <mcgrof@do-not-panic.com>,
	netdev <netdev@vger.kernel.org>,
	ath10k@lists.infradead.org,
	"John W. Linville" <linville@tuxdriver.com>
Subject: [PATCH net-next] ath10k: wmi: Convert use of 6 to ETH_ALEN
Date: Wed, 02 Oct 2013 20:39:11 -0700	[thread overview]
Message-ID: <1380771551.2081.93.camel@joe-AO722> (raw)
In-Reply-To: <1380771110.2081.89.camel@joe-AO722>

Use the appropriate define instead of 6.

Signed-off-by: Joe Perches <joe@perches.com>
Noticed-by: Julia Lawall <julia.lawall@lip6.fr> via spatch script

---

 drivers/net/wireless/ath/ath10k/wmi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c
index bee88e8..48d44e7 100644
--- a/drivers/net/wireless/ath/ath10k/wmi.c
+++ b/drivers/net/wireless/ath/ath10k/wmi.c
@@ -1758,7 +1758,7 @@ int ath10k_wmi_vdev_up(struct ath10k *ar, u32 vdev_id, u32 aid, const u8 *bssid)
 	cmd = (struct wmi_vdev_up_cmd *)skb->data;
 	cmd->vdev_id       = __cpu_to_le32(vdev_id);
 	cmd->vdev_assoc_id = __cpu_to_le32(aid);
-	memcpy(&cmd->vdev_bssid.addr, bssid, 6);
+	memcpy(&cmd->vdev_bssid.addr, bssid, ETH_ALEN);
 
 	ath10k_dbg(ATH10K_DBG_WMI,
 		   "wmi mgmt vdev up id 0x%x assoc id %d bssid %pM\n",

  reply	other threads:[~2013-10-03  3:39 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-02  2:04 [PATCH net-next] net:drivers/net: Miscellaneous conversions to ETH_ALEN Joe Perches
     [not found] ` <87k3hw469z.fsf@kamboji.qca.qualcomm.com>
2013-10-02  6:40   ` Joe Perches
2013-10-02 17:44     ` Luis R. Rodriguez
2013-10-02 18:02       ` Joe Perches
2013-10-02 22:38         ` Julia Lawall
2013-10-03  0:09           ` Joe Perches
2013-10-03  0:28             ` Joe Perches
2013-10-03  3:31               ` Joe Perches
2013-10-03  3:39                 ` Joe Perches [this message]
2013-10-03  3:44                   ` [PATCH net-next] ath10k: wmi: Convert use of 6 " David Miller
2013-10-03  4:18                   ` Eric Dumazet
2013-10-03  4:34                     ` Kalle Valo
2013-10-03  4:44                       ` Eric Dumazet
2013-10-03  4:54                         ` Kalle Valo
2013-10-03  5:09                         ` Joe Perches
2013-10-03  5:24                           ` Eric Dumazet
2013-10-03  5:34                             ` Joe Perches
2013-10-03  5:47                               ` Julia Lawall
2013-10-03  6:00                               ` Eric Dumazet
2013-10-03  6:07                                 ` Joe Perches
2013-10-03  6:32                               ` Julia Lawall
2013-10-03  4:56                     ` Joe Perches
2013-10-03  5:43                     ` Julia Lawall
2013-10-03  5:41             ` [PATCH net-next] net:drivers/net: Miscellaneous conversions " Julia Lawall
2013-10-02  7:27 ` Arend van Spriel
2013-10-02 21:05 ` David Miller

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=1380771551.2081.93.camel@joe-AO722 \
    --to=joe@perches.com \
    --cc=ath10k@lists.infradead.org \
    --cc=julia.lawall@lip6.fr \
    --cc=kvalo@qca.qualcomm.com \
    --cc=linville@tuxdriver.com \
    --cc=mcgrof@do-not-panic.com \
    --cc=netdev@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).