HomeFreeBSD

rum: fix frame length checks in Rx path.

Description

rum: fix frame length checks in Rx path.

Split usbd_xfer_status() check:

  • Check xfer length: must be longer, than Rx descriptor size.
  • Check frame size: must be shorter than xfer length.
  • Discard too short frames.

Tested with WUSB54GC, STA/MONITOR modes.

Details

Provenance
avosAuthored on
Parents
rS305464: MFC r304674: intpm: add support for SB800
Branches
Unknown
Tags
Unknown