--- zzzz-none-000/linux-5.4.213/net/bridge/br_sysfs_br.c 2022-09-15 10:04:56.000000000 +0000 +++ alder-5690pro-762/linux-5.4.213/net/bridge/br_sysfs_br.c 2024-08-14 09:02:13.000000000 +0000 @@ -166,6 +166,30 @@ } static DEVICE_ATTR_RW(group_fwd_mask); +static ssize_t disable_eap_hack_show(struct device *d, + struct device_attribute *attr, + char *buf) +{ + struct net_bridge *br = to_bridge(d); + return sprintf(buf, "%u\n", br->disable_eap_hack); +} + +static int set_disable_eap_hack(struct net_bridge *br, unsigned long val) +{ + br->disable_eap_hack = !!val; + + return 0; +} + +static ssize_t disable_eap_hack_store(struct device *d, + struct device_attribute *attr, + const char *buf, + size_t len) +{ + return store_bridge_parm(d, buf, len, set_disable_eap_hack); +} +static DEVICE_ATTR_RW(disable_eap_hack); + static ssize_t priority_show(struct device *d, struct device_attribute *attr, char *buf) { @@ -851,6 +875,7 @@ &dev_attr_ageing_time.attr, &dev_attr_stp_state.attr, &dev_attr_group_fwd_mask.attr, + &dev_attr_disable_eap_hack.attr, &dev_attr_priority.attr, &dev_attr_bridge_id.attr, &dev_attr_root_id.attr,