Stefan, Your patch works well on my system:
ral0 at pci0 dev 14 function 0 "Ralink RT2661" rev 0x00: irq 10, address 00:14:85:d5:39:bb ral0: MAC/BBP RT2661D, RF RT2529 (MIMO XR) Only problem is downloading from the net is extremely slow. Benchmarks have it at 512 KB/sec as opposed to 10 megabits/s. This is (internet) -> OpenBSD -> ral0 -> wifi client But it doesn't crash or bring up OACTIVE flag anymore which is fantastic.. however, it's a little to slow to use with any regularity. Uploads are fine (wifi -> ral(4) -> OpenBSD -> out to the net). Tom