-/* $OpenBSD: r92creg.h,v 1.26 2022/03/14 14:15:33 stsp Exp $ */
+/* $OpenBSD: r92creg.h,v 1.27 2022/08/13 14:16:59 kevlo Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
#define R92C_RXDW3_RATE_M 0x0000003f
#define R92C_RXDW3_RATE_S 0
+#define R92E_RXDW3_RATE_M 0x0000007f
+#define R92E_RXDW3_RATE_S 0
#define R92C_RXDW3_HT 0x00000040
#define R92C_RXDW3_HTC 0x00000400
#define R88E_RXDW3_RPT_M 0x0000c000
-/* $OpenBSD: if_urtwn.c,v 1.101 2022/06/26 15:38:11 jmatthew Exp $ */
+/* $OpenBSD: if_urtwn.c,v 1.102 2022/08/13 14:16:59 kevlo Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
return;
}
- rate = MS(rxdw3, R92C_RXDW3_RATE);
+ rate = (sc->sc_sc.chip & RTWN_CHIP_92E) ?
+ MS(rxdw3, R92E_RXDW3_RATE) : MS(rxdw3, R92C_RXDW3_RATE);
infosz = MS(rxdw0, R92C_RXDW0_INFOSZ) * 8;
/* Get RSSI from PHY status descriptor if present. */