From 035bb34f2629a0e80ec4bc3ccca8119ce83b1a4c Mon Sep 17 00:00:00 2001 From: Mieczyslaw Nalewaj Date: Sun, 21 Jul 2024 23:00:59 +0200 Subject: [PATCH] kernel: set vlan mc for rtl8367d family chips Set vlan mc for rtl8367d family chips Co-authored-by: Serge Vasilugin Signed-off-by: Mieczyslaw Nalewaj Link: https://github.com/openwrt/openwrt/pull/14804 Signed-off-by: Hauke Mehrtens --- target/linux/generic/files/drivers/net/phy/rtl8367b.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/generic/files/drivers/net/phy/rtl8367b.c b/target/linux/generic/files/drivers/net/phy/rtl8367b.c index 0f93e95a6ff4..33a40f5929bd 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8367b.c +++ b/target/linux/generic/files/drivers/net/phy/rtl8367b.c @@ -1040,7 +1040,7 @@ static int rtl8367b_set_vlan_mc(struct rtl8366_smi *smi, u32 index, vlanmc->priority > RTL8367B_PRIORITYMAX || vlanmc->member > RTL8367B_VLAN_MC0_MEMBER_MASK || vlanmc->untag > RTL8367B_UNTAG_MASK || - vlanmc->fid > RTL8367B_FIDMAX) + vlanmc->fid > ((smi->rtl8367b_chip >= RTL8367B_CHIP_RTL8367S_VB) ? RTL8367D_FIDMAX : RTL8367B_FIDMAX)) return -EINVAL; data[0] = (vlanmc->member & RTL8367B_VLAN_MC0_MEMBER_MASK) << -- 2.30.2