Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1313208
| From | "Gujulan Elango, Hari Prasath (H.)" <hgujulan@visteon.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] staging: rtl8188eu: use eth_broadcast_addr() in place of memset |
| Date | 2016-01-20 14:00 +0100 |
| Message-ID | <qT0wH-6v8-27@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] staging: rtl8188eu: use eth_broadcast_addr() in place of memset "Gujulan Elango, Hari Prasath (H.)" <hgujulan@visteon.com> - 2016-01-20 14:00 +0100
csiph-web