mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
staging: rtl8723bs: remove custom is_multicast_mac_addr() function
is_multicast_mac_addr() is redundant reimplementation of standard is_multicast_ether_addr() func. Remove it and switch to use is_multicast_ether_addr(). Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com> Link: https://patch.msgid.link/20260323150650.7168-7-nikolayof23@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1ee6776345
commit
2541d18229
|
|
@ -13,7 +13,7 @@ u8 rtw_validate_bssid(u8 *bssid)
|
|||
|
||||
if (is_zero_ether_addr(bssid) ||
|
||||
is_broadcast_ether_addr(bssid) ||
|
||||
is_multicast_mac_addr(bssid))
|
||||
is_multicast_ether_addr(bssid))
|
||||
ret = false;
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
|
|
@ -1275,7 +1275,7 @@ static signed int validate_recv_mgnt_frame(struct adapter *padapter, union recv_
|
|||
ETH_ALEN))
|
||||
psta->sta_stats.rx_probersp_pkts++;
|
||||
else if (is_broadcast_ether_addr(GetAddr1Ptr(precv_frame->u.hdr.rx_data)) ||
|
||||
is_multicast_mac_addr(GetAddr1Ptr(precv_frame->u.hdr.rx_data)))
|
||||
is_multicast_ether_addr(GetAddr1Ptr(precv_frame->u.hdr.rx_data)))
|
||||
psta->sta_stats.rx_probersp_bm_pkts++;
|
||||
else
|
||||
psta->sta_stats.rx_probersp_uo_pkts++;
|
||||
|
|
|
|||
|
|
@ -507,11 +507,6 @@ Total: 28-2340 bytes
|
|||
#define DEFAULT_FTS 2346
|
||||
#define IP_ARG(x) (x)
|
||||
|
||||
static inline int is_multicast_mac_addr(const u8 *addr)
|
||||
{
|
||||
return ((addr[0] != 0xff) && (0x01 & addr[0]));
|
||||
}
|
||||
|
||||
#define CFG_IEEE80211_RESERVE_FCS (1<<0)
|
||||
#define CFG_IEEE80211_COMPUTE_FCS (1<<1)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user