mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
staging: r8188eu: use is_multicast_ether_addr in core/rtw_mlme.c
Use is_multicast_ether_addr instead of custom macro IS_MCAST, the buffer is properly aligned. Acked-by: Phillip Potter <phil@philpotter.co.uk> Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20210823120106.9633-3-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8aa824f2ec
commit
08cff18916
1 changed files with 2 additions and 2 deletions
|
@ -2121,9 +2121,9 @@ void rtw_issue_addbareq_cmd(struct adapter *padapter, struct xmit_frame *pxmitfr
|
|||
struct sta_info *psta = NULL;
|
||||
struct ht_priv *phtpriv;
|
||||
struct pkt_attrib *pattrib = &pxmitframe->attrib;
|
||||
s32 bmcst = IS_MCAST(pattrib->ra);
|
||||
|
||||
if (bmcst || (padapter->mlmepriv.LinkDetectInfo.NumTxOkInPeriod < 100))
|
||||
if (is_multicast_ether_addr(pattrib->ra) ||
|
||||
padapter->mlmepriv.LinkDetectInfo.NumTxOkInPeriod < 100)
|
||||
return;
|
||||
|
||||
priority = pattrib->priority;
|
||||
|
|
Loading…
Reference in a new issue