Lines 91-102
rtwn_usb_write_region_1(struct rtwn_softc *sc, uint16_t addr, uint8_t *buf,
Link Here
|
91 |
int len) |
91 |
int len) |
92 |
{ |
92 |
{ |
93 |
usb_device_request_t req; |
93 |
usb_device_request_t req; |
|
|
94 |
struct rtwn_usb_softc *uc; |
94 |
|
95 |
|
95 |
req.bmRequestType = UT_WRITE_VENDOR_DEVICE; |
96 |
req.bmRequestType = UT_WRITE_VENDOR_DEVICE; |
96 |
req.bRequest = R92C_REQ_REGS; |
97 |
req.bRequest = R92C_REQ_REGS; |
97 |
USETW(req.wValue, addr); |
98 |
USETW(req.wValue, addr); |
98 |
USETW(req.wIndex, 0); |
99 |
USETW(req.wIndex, 0); |
99 |
USETW(req.wLength, len); |
100 |
USETW(req.wLength, len); |
|
|
101 |
uc = RTWN_USB_SOFTC(sc); |
102 |
if (uc->uc_set_chan == 1) |
103 |
(sc->sc_delay)(sc,uc->uc_delay_us); |
100 |
return (rtwn_do_request(sc, &req, buf)); |
104 |
return (rtwn_do_request(sc, &req, buf)); |
101 |
} |
105 |
} |
102 |
|
106 |
|