projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e5b1b4
)
wifi: ath: Use is_multicast_ether_addr() to check multicast Ether address
author
Ruan Jinjie
<ruanjinjie@huawei.com>
Mon, 14 Aug 2023 12:42:11 +0000
(20:42 +0800)
committer
Kalle Valo
<quic_kvalo@quicinc.com>
Fri, 25 Aug 2023 07:39:28 +0000
(10:39 +0300)
Use is_multicast_ether_addr() to perform the Checking.
Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Jeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link:
https://lore.kernel.org/r/20230814124212.302738-2-ruanjinjie@huawei.com
drivers/net/wireless/ath/key.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/key.c
b/drivers/net/wireless/ath/key.c
index
b7b61d4
..
21a93fe
100644
(file)
--- a/
drivers/net/wireless/ath/key.c
+++ b/
drivers/net/wireless/ath/key.c
@@
-104,7
+104,7
@@
bool ath_hw_keysetmac(struct ath_common *common, u16 entry, const u8 *mac)
* Not setting this bit allows the hardware to use the key
* for multicast frame decryption.
*/
- if (
mac[0] & 0x01
)
+ if (
is_multicast_ether_addr(mac)
)
unicast_flag = 0;
macLo = get_unaligned_le32(mac);