summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorHari Prasath Gujulan Elango2016-01-20 13:52:58 +0100
committerGreg Kroah-Hartman2016-02-08 04:00:46 +0100
commita3124e7b72bc3d9b915c690561bafe3ad8807696 (patch)
tree467843e9196e4d46e3a8553cbcb99fedd2bb4e72 /drivers/staging/rtl8188eu
parentstaging: rtl8188eu: use list_first_entry_or_null() (diff)
downloadkernel-qcow2-linux-a3124e7b72bc3d9b915c690561bafe3ad8807696.tar.gz
kernel-qcow2-linux-a3124e7b72bc3d9b915c690561bafe3ad8807696.tar.xz
kernel-qcow2-linux-a3124e7b72bc3d9b915c690561bafe3ad8807696.zip
staging: rtl8188eu: use eth_broadcast_addr() in place of memset
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r--drivers/staging/rtl8188eu/os_dep/ioctl_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c b/drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
index a076ede50b22..aec20bb28ca0 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: