mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2025-12-08 07:14:03 +00:00
Use is_multicast_ether_addr instead of custom macro IS_MCAST, the
buffer is properly aligned. Link: https://lore.kernel.org/r/20210823120106.9633-3-straube.linux@gmail.com Link: https://lore.kernel.org/r/20210823120106.9633-4-straube.linux@gmail.com Link: https://lore.kernel.org/r/20210823120106.9633-5-straube.linux@gmail.com Link: https://lore.kernel.org/r/20210823120106.9633-6-straube.linux@gmail.com Link: https://lore.kernel.org/r/20210823120106.9633-7-straube.linux@gmail.com Link: https://lore.kernel.org/r/20210823120106.9633-8-straube.linux@gmail.com Link: https://lore.kernel.org/r/20210823120106.9633-9-straube.linux@gmail.com
This commit is contained in:
committed by
Carlos Garces
parent
3cfc5c26b4
commit
60aa279428
@@ -184,7 +184,7 @@ void rtw_led_control(_adapter *adapter, LED_CTL_MODE ctl)
|
||||
void rtw_led_tx_control(_adapter *adapter, const u8 *da)
|
||||
{
|
||||
#if CONFIG_RTW_SW_LED_TRX_DA_CLASSIFY
|
||||
if (IS_MCAST(da))
|
||||
if (is_multicast_ether_addr(da))
|
||||
rtw_led_control(adapter, LED_CTL_BMC_TX);
|
||||
else
|
||||
rtw_led_control(adapter, LED_CTL_UC_TX);
|
||||
@@ -196,7 +196,7 @@ void rtw_led_tx_control(_adapter *adapter, const u8 *da)
|
||||
void rtw_led_rx_control(_adapter *adapter, const u8 *da)
|
||||
{
|
||||
#if CONFIG_RTW_SW_LED_TRX_DA_CLASSIFY
|
||||
if (IS_MCAST(da))
|
||||
if (is_multicast_ether_addr(da))
|
||||
rtw_led_control(adapter, LED_CTL_BMC_RX);
|
||||
else
|
||||
rtw_led_control(adapter, LED_CTL_UC_RX);
|
||||
|
||||
Reference in New Issue
Block a user