fix USBDEVFS_SETCONFIGURATION

This commit is contained in:
duffyduck 2026-02-18 23:25:08 +01:00
parent e327bad9c6
commit 219214c0a6
3 changed files with 0 additions and 9 deletions

Binary file not shown.

Binary file not shown.

View File

@ -381,15 +381,6 @@ func (s *Server) handleCmdSubmit(r io.Reader, hdr *URBHeader, retChan chan<- []b
log.Printf("[usbip-server] SET_INTERFACE(iface=%d, alt=%d) OK", wIndex, wValue)
}
case bmRequestType == 0x00 && bRequest == 0x09:
// SET_CONFIGURATION (Standard, Device recipient)
if err := s.handle.SetConfiguration(uint32(wValue)); err != nil {
log.Printf("[usbip-server] SET_CONFIGURATION(%d) failed: %v", wValue, err)
status = -32
} else {
log.Printf("[usbip-server] SET_CONFIGURATION(%d) OK", wValue)
}
case bmRequestType == 0x02 && bRequest == 0x01 && wValue == 0x0000:
// CLEAR_FEATURE(ENDPOINT_HALT) (Standard, Endpoint recipient)
if err := s.handle.ClearHalt(uint32(wIndex)); err != nil {