Module Name:    src
Committed By:   martin
Date:           Mon Oct 10 18:30:28 UTC 2022

Modified Files:
        src/sys/dev/usb: if_mos.c

Log Message:
ETHERCAP_VLAN_MTU does not go into ifp->if_capabilities but ethercom
ec_capabilities instead.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/usb/if_mos.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/if_mos.c
diff -u src/sys/dev/usb/if_mos.c:1.23 src/sys/dev/usb/if_mos.c:1.24
--- src/sys/dev/usb/if_mos.c:1.23	Sat Aug 20 14:08:59 2022
+++ src/sys/dev/usb/if_mos.c	Mon Oct 10 18:30:28 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_mos.c,v 1.23 2022/08/20 14:08:59 riastradh Exp $	*/
+/*	$NetBSD: if_mos.c,v 1.24 2022/10/10 18:30:28 martin Exp $	*/
 /*	$OpenBSD: if_mos.c,v 1.40 2019/07/07 06:40:10 kevlo Exp $	*/
 
 /*
@@ -72,7 +72,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_mos.c,v 1.23 2022/08/20 14:08:59 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mos.c,v 1.24 2022/10/10 18:30:28 martin Exp $");
 
 #include <sys/param.h>
 
@@ -652,8 +652,8 @@ mos_attach(device_t parent, device_t sel
 		return;
 	}
 
-	struct ifnet *ifp = usbnet_ifp(un);
-	ifp->if_capabilities = ETHERCAP_VLAN_MTU;
+	struct ethercom *ec = usbnet_ec(un);
+	ec->ec_capabilities = ETHERCAP_VLAN_MTU;
 
 	usbnet_attach_ifp(un, IFF_SIMPLEX | IFF_BROADCAST | IFF_MULTICAST,
 	    0, &unm);

Reply via email to