diff options
author | Ruan Jinjie <ruanjinjie@huawei.com> | 2023-08-14 15:42:12 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2024-01-18 16:05:19 +0300 |
commit | 899c0e8a221983ce20e887932dfed7955662609c (patch) | |
tree | ddacad862e419c9f8ec0971d674064f03d583dc3 /drivers/net/wireless/marvell/mwifiex/cfg80211.c | |
parent | 47f0e32ffe4ecfa038eadffad7f15831d0d843fb (diff) | |
download | linux-899c0e8a221983ce20e887932dfed7955662609c.tar.xz |
wifi: mwifiex: Use helpers to check multicast addresses
Use is_multicast_ether_addr() and is_unicast_ether_addr()
to check the addresses.
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20230814124212.302738-3-ruanjinjie@huawei.com
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex/cfg80211.c')
-rw-r--r-- | drivers/net/wireless/marvell/mwifiex/cfg80211.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/cfg80211.c b/drivers/net/wireless/marvell/mwifiex/cfg80211.c index 3604abcbcff9..b909a7665e9c 100644 --- a/drivers/net/wireless/marvell/mwifiex/cfg80211.c +++ b/drivers/net/wireless/marvell/mwifiex/cfg80211.c @@ -3359,7 +3359,7 @@ static int mwifiex_set_wowlan_mef_entry(struct mwifiex_private *priv, } if (!wowlan->patterns[i].pkt_offset) { - if (!(byte_seq[0] & 0x01) && + if (is_unicast_ether_addr(byte_seq) && (byte_seq[MWIFIEX_MEF_MAX_BYTESEQ] == 1)) { mef_cfg->criteria |= MWIFIEX_CRITERIA_UNICAST; continue; |