-/* $OpenBSD: if_mwx.c,v 1.1 2024/02/21 10:48:10 claudio Exp $ */
+/* $OpenBSD: if_mwx.c,v 1.2 2024/02/21 12:08:05 jsg Exp $ */
/*
* Copyright (c) 2022 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2021 MediaTek Inc.
}
/*
- * Poll for timeout miliseconds or until register reg read the value val
+ * Poll for timeout milliseconds or until register reg read the value val
* after applying the mask to the value read. Returns 0 on success ETIMEDOUT
* on failure.
*/
return rv;
#if 0
- /* XXX no channel availabel yet */
+ /* XXX no channel available yet */
rv = mt7921_mcu_set_chan_info(sc, MCU_EXT_CMD_SET_RX_PATH);
if (rv)
return rv;
// mt76_connac_pm_ref(&dev->mphy, &dev->pm);
if (intr & ~mask)
- printf("%s: unhandled interupt %08x\n", DEVNAME(sc),
+ printf("%s: unhandled interrupt %08x\n", DEVNAME(sc),
intr & ~mask);
/* ack interrupts */
intr &= mask;
break;
default:
if (DEVDEBUG(sc))
- printf("%s: recevied unknown pkt type %d\n",
+ printf("%s: received unknown pkt type %d\n",
DEVNAME(sc), type);
m_freem(m);
break;
return rv;
}
if (sc->sc_mcu_wait[seq].mcu_m == NULL) {
- printf("%s: command respone missing\n", DEVNAME(sc));
+ printf("%s: command response missing\n", DEVNAME(sc));
return ENOENT;
}
if (mp != NULL)
if (rv != 0)
return rv;
- /* the message was allready pulled up by mwx_mcu_rx_event() */
+ /* the message was already pulled up by mwx_mcu_rx_event() */
if (m->m_len < sizeof(*hdr)) {
printf("%s: GET_NIC_CAPAB response size error\n", DEVNAME(sc));
m_freem(m);