* [PATCH] staging: rtl8188eu: use eth_broadcast_addr() in place of memset
@ 2016-01-20 12:52 Gujulan Elango, Hari Prasath (H.)
0 siblings, 0 replies; only message in thread
From: Gujulan Elango, Hari Prasath (H.) @ 2016-01-20 12:52 UTC (permalink / raw)
To: gregkh@linuxfoundation.org, insafonov@gmail.com,
jsitnicki@gmail.com, mahfouz.saif.elyazal@gmail.com,
luca@lucaceresoli.net, shraddha.6596@gmail.com,
paul.gortmaker@windriver.com
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
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@visteon.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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-20 12:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-20 12:52 [PATCH] staging: rtl8188eu: use eth_broadcast_addr() in place of memset Gujulan Elango, Hari Prasath (H.)
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.