mt76: mt76u: fix typo in mt76u_fill_rx_sg
Fix typo setting urb->transfer_buffer_length in mt76u_fill_rx_sg Fixes:b40b15e152
("mt76: add usb support to mt76 layer") Fixes:f8f527b16d
("mt76: usb: use EP max packet aligned buffer sizes for rx") Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
4af81f02b4
commit
cf21105198
|
@ -309,7 +309,7 @@ mt76u_fill_rx_sg(struct mt76_dev *dev, struct mt76_queue *q, struct urb *urb,
|
|||
}
|
||||
|
||||
urb->num_sgs = max_t(int, i, urb->num_sgs);
|
||||
urb->transfer_buffer_length = urb->num_sgs * q->buf_size,
|
||||
urb->transfer_buffer_length = urb->num_sgs * q->buf_size;
|
||||
sg_init_marker(urb->sg, urb->num_sgs);
|
||||
|
||||
return i ? : -ENOMEM;
|
||||
|
|
Loading…
Reference in New Issue