mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
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>
This commit is contained in:
parent
b9f1c275b6
commit
a3124e7b72
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue