[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20160120125351.GA30535@IND12F0122>
Date: Wed, 20 Jan 2016 12:52:58 +0000
From: "Gujulan Elango, Hari Prasath (H.)" <hgujulan@...teon.com>
To: "gregkh@...uxfoundation.org" <gregkh@...uxfoundation.org>,
"insafonov@...il.com" <insafonov@...il.com>,
"jsitnicki@...il.com" <jsitnicki@...il.com>,
"mahfouz.saif.elyazal@...il.com" <mahfouz.saif.elyazal@...il.com>,
"luca@...aceresoli.net" <luca@...aceresoli.net>,
"shraddha.6596@...il.com" <shraddha.6596@...il.com>,
"paul.gortmaker@...driver.com" <paul.gortmaker@...driver.com>
CC: "devel@...verdev.osuosl.org" <devel@...verdev.osuosl.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH] staging: rtl8188eu: use eth_broadcast_addr() in place of
memset
From: Hari Prasath Gujulan Elango
Replace the memset of array to broadcast address 0xFF by using the
eth_broadcast_addr() API
Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@...teon.com>
---
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
index a076ede..aec20bb 100644
--- a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
+++ b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
@@ -1907,7 +1907,7 @@ static int rtw_wx_set_enc_ext(struct net_device *dev,
memset(param, 0, param_len);
param->cmd = IEEE_CMD_SET_ENCRYPTION;
- memset(param->sta_addr, 0xff, ETH_ALEN);
+ eth_broadcast_addr(param->sta_addr);
switch (pext->alg) {
case IW_ENCODE_ALG_NONE:
--
1.9.1
Powered by blists - more mailing lists