- Fix build of manual page and inclusion of mos driver into kernel config file.
- Fix style compliancy by wrapping some long lines in if_mos.c Approved by: thompsa (mentor)
This commit is contained in:
parent
b7f1862c26
commit
26fdf1e8b6
@ -221,6 +221,7 @@ MAN= aac.4 \
|
||||
mmc.4 \
|
||||
mmcsd.4 \
|
||||
mn.4 \
|
||||
mos.4 \
|
||||
mouse.4 \
|
||||
mps.4 \
|
||||
mpt.4 \
|
||||
|
@ -28,6 +28,7 @@ kernel configuration file:
|
||||
.Bd -ragged -offset indent
|
||||
.Cd "device uhci"
|
||||
.Cd "device ohci"
|
||||
.Cd "device ehci"
|
||||
.Cd "device usb"
|
||||
.Cd "device miibus"
|
||||
.Cd "device mos"
|
||||
@ -72,6 +73,7 @@ driver include:
|
||||
.Bl -bullet -compact
|
||||
.It
|
||||
Sitecom LN030
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr altq 4 ,
|
||||
.Xr arp 4 ,
|
||||
|
@ -1815,10 +1815,11 @@ dev/usb/net/if_cdce.c optional cdce
|
||||
dev/usb/net/if_cue.c optional cue
|
||||
dev/usb/net/if_ipheth.c optional ipheth
|
||||
dev/usb/net/if_kue.c optional kue
|
||||
dev/usb/net/if_mos.c optional mos
|
||||
dev/usb/net/if_rue.c optional rue
|
||||
dev/usb/net/if_udav.c optional udav
|
||||
dev/usb/net/usb_ethernet.c optional aue | axe | cdce | cue | kue | rue | \
|
||||
udav
|
||||
dev/usb/net/usb_ethernet.c optional aue | axe | cdce | cue | kue | mos | \
|
||||
rue | udav
|
||||
dev/usb/net/uhso.c optional uhso
|
||||
#
|
||||
# USB WLAN drivers
|
||||
|
@ -802,8 +802,10 @@ mos_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
|
||||
MOS_DPRINTFN("erroneous frame received");
|
||||
if (rxstat & MOS_RXSTS_SHORT_FRAME)
|
||||
MOS_DPRINTFN("frame size less than 64 bytes");
|
||||
if (rxstat & MOS_RXSTS_LARGE_FRAME)
|
||||
MOS_DPRINTFN("frame size larger than 1532 bytes");
|
||||
if (rxstat & MOS_RXSTS_LARGE_FRAME) {
|
||||
MOS_DPRINTFN("frame size larger than "
|
||||
"1532 bytes");
|
||||
}
|
||||
if (rxstat & MOS_RXSTS_CRC_ERROR)
|
||||
MOS_DPRINTFN("CRC error");
|
||||
if (rxstat & MOS_RXSTS_ALIGN_ERROR)
|
||||
@ -814,7 +816,9 @@ mos_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
|
||||
/* Remember the last byte was used for the status fields */
|
||||
pktlen = actlen - 1;
|
||||
if (pktlen < sizeof(struct ether_header)) {
|
||||
MOS_DPRINTFN("error: pktlen %d is smaller than ether_header %zd", pktlen, sizeof(struct ether_header));
|
||||
MOS_DPRINTFN("error: pktlen %d is smaller "
|
||||
"than ether_header %zd", pktlen,
|
||||
sizeof(struct ether_header));
|
||||
ifp->if_ierrors++;
|
||||
goto tr_setup;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user