mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
Revert "mt76: usb: fix endian in mt76u_copy"
This reverts commit edbe88ec7c.
This commit is contained in:
@@ -165,11 +165,11 @@ static void mt76u_copy(struct mt76_dev *dev, u32 offset,
|
||||
|
||||
mutex_lock(&usb->usb_ctrl_mtx);
|
||||
for (i = 0; i < DIV_ROUND_UP(len, 4); i++) {
|
||||
put_unaligned(val[i], usb->data);
|
||||
put_unaligned_le32(val[i], usb->data);
|
||||
ret = __mt76u_vendor_request(dev, MT_VEND_MULTI_WRITE,
|
||||
USB_DIR_OUT | USB_TYPE_VENDOR,
|
||||
0, offset + i * 4, usb->data,
|
||||
sizeof(u32));
|
||||
sizeof(__le32));
|
||||
if (ret < 0)
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user