Commit 25f71900 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: rtw_sta_mgt.c: One copy of the broadcast address should suffice

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a6f4e0c1
...@@ -22,6 +22,8 @@ ...@@ -22,6 +22,8 @@
#include <sta_info.h> #include <sta_info.h>
#include <rtl8723a_hal.h> #include <rtl8723a_hal.h>
static u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
static void _rtw_init_stainfo(struct sta_info *psta) static void _rtw_init_stainfo(struct sta_info *psta)
{ {
memset((u8 *)psta, 0, sizeof (struct sta_info)); memset((u8 *)psta, 0, sizeof (struct sta_info));
...@@ -344,7 +346,6 @@ struct sta_info *rtw_get_stainfo23a(struct sta_priv *pstapriv, const u8 *hwaddr) ...@@ -344,7 +346,6 @@ struct sta_info *rtw_get_stainfo23a(struct sta_priv *pstapriv, const u8 *hwaddr)
struct sta_info *psta = NULL; struct sta_info *psta = NULL;
u32 index; u32 index;
const u8 *addr; const u8 *addr;
u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
if (hwaddr == NULL) if (hwaddr == NULL)
return NULL; return NULL;
...@@ -379,9 +380,8 @@ int rtw_init_bcmc_stainfo23a(struct rtw_adapter* padapter) ...@@ -379,9 +380,8 @@ int rtw_init_bcmc_stainfo23a(struct rtw_adapter* padapter)
struct sta_info *psta; struct sta_info *psta;
struct tx_servq *ptxservq; struct tx_servq *ptxservq;
int res = _SUCCESS; int res = _SUCCESS;
unsigned char bcast_addr[6] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
psta = rtw_alloc_stainfo23a(pstapriv, bcast_addr, GFP_KERNEL); psta = rtw_alloc_stainfo23a(pstapriv, bc_addr, GFP_KERNEL);
if (psta == NULL) { if (psta == NULL) {
res = _FAIL; res = _FAIL;
RT_TRACE(_module_rtl871x_sta_mgt_c_, _drv_err_, RT_TRACE(_module_rtl871x_sta_mgt_c_, _drv_err_,
...@@ -399,7 +399,6 @@ struct sta_info *rtw_get_bcmc_stainfo23a(struct rtw_adapter *padapter) ...@@ -399,7 +399,6 @@ struct sta_info *rtw_get_bcmc_stainfo23a(struct rtw_adapter *padapter)
{ {
struct sta_info *psta; struct sta_info *psta;
struct sta_priv *pstapriv = &padapter->stapriv; struct sta_priv *pstapriv = &padapter->stapriv;
u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
psta = rtw_get_stainfo23a(pstapriv, bc_addr); psta = rtw_get_stainfo23a(pstapriv, bc_addr);
return psta; return psta;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment