diff options
author | Hari Prasath Gujulan Elango <hgujulan@visteon.com> | 2016-01-20 12:52:58 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-07 19:00:46 -0800 |
commit | a3124e7b72bc3d9b915c690561bafe3ad8807696 (patch) | |
tree | 467843e9196e4d46e3a8553cbcb99fedd2bb4e72 /drivers/staging | |
parent | b9f1c275b695ff9339cfd0c2ea841f53d4205611 (diff) | |
download | op-kernel-dev-a3124e7b72bc3d9b915c690561bafe3ad8807696.zip op-kernel-dev-a3124e7b72bc3d9b915c690561bafe3ad8807696.tar.gz |
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')
-rw-r--r-- | drivers/staging/rtl8188eu/os_dep/ioctl_linux.c | 2 |
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 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: |