From c5187c6bb3f2deec5050c79eaaa90463f9134edf Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Fri, 5 Jan 2024 19:42:40 +0200 Subject: [PATCH] Kernel: Replace incorrect RTL8168 multicast config registers address The specification uses awkward numbering, marking the first byte as 7, and the last one as 0, which caused me to misunderstand their ordering, and use the last byte's address as the first one, and so on. --- Kernel/Net/Realtek/RTL8168NetworkAdapter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Net/Realtek/RTL8168NetworkAdapter.cpp b/Kernel/Net/Realtek/RTL8168NetworkAdapter.cpp index ab063b0c97..18c3501440 100644 --- a/Kernel/Net/Realtek/RTL8168NetworkAdapter.cpp +++ b/Kernel/Net/Realtek/RTL8168NetworkAdapter.cpp @@ -15,8 +15,8 @@ namespace Kernel { #define REG_MAC 0x00 -#define REG_MAR4 0x0B -#define REG_MAR0 0x0F +#define REG_MAR0 0x08 +#define REG_MAR4 0x0C #define REG_EEE_LED 0x1B #define REG_TXADDR 0x20 #define REG_COMMAND 0x37