generic: ar8216: group MIB counters and use two basic ones only by default
[openwrt/staging/lynxis.git] / target / linux / generic / files / drivers / net / phy / ar8327.c
index c2964169eb26bbde085100d7ed3699d86a5250df..1878585b0c59f6e48636947c272f8612d4911ad8 100644 (file)
@@ -1328,6 +1328,13 @@ static const struct switch_attr ar8327_sw_attr_globals[] = {
                .set = ar8xxx_sw_set_mib_poll_interval,
                .get = ar8xxx_sw_get_mib_poll_interval
        },
+       {
+               .type = SWITCH_TYPE_INT,
+               .name = "ar8xxx_mib_type",
+               .description = "MIB type (0=basic 1=extended)",
+               .set = ar8xxx_sw_set_mib_type,
+               .get = ar8xxx_sw_get_mib_type
+       },
        {
                .type = SWITCH_TYPE_INT,
                .name = "enable_mirror_rx",