From 52972616516a18e69bb2849c2f2e718ee644b27f Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 8 Sep 2009 13:19:05 +0000 Subject: Revert previous commit and add myself to the list of people who should know better than to commit with a cat in the area. --- sys/dev/usb/wlan/if_rum.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev/usb/wlan/if_rum.c') diff --git a/sys/dev/usb/wlan/if_rum.c b/sys/dev/usb/wlan/if_rum.c index 6af6ec2..7abd104 100644 --- a/sys/dev/usb/wlan/if_rum.c +++ b/sys/dev/usb/wlan/if_rum.c @@ -42,9 +42,12 @@ __FBSDID("$FreeBSD$"); #include #include +#include +#include #include #include +#include #include #include #include @@ -1486,7 +1489,7 @@ rum_rf_write(struct rum_softc *sc, uint8_t reg, uint32_t val) return; } - tmp = RT2573_RF_BUSY | RT2573_RF_20BIT | ((val & 0xfffff) << 2) | + tmp = RT2573_RF_BUSY | RT2573_RF_20BIT | (val & 0xfffff) << 2 | (reg & 3); rum_write(sc, RT2573_PHY_CSR4, tmp); -- cgit v1.1