- For RTL8188CUS/RTL8192CU, we have to force 8051 reset/enable before waiting
authorkevlo <kevlo@openbsd.org>
Sat, 8 Jul 2017 14:26:23 +0000 (14:26 +0000)
committerkevlo <kevlo@openbsd.org>
Sat, 8 Jul 2017 14:26:23 +0000 (14:26 +0000)
commitbedde6848183ab3ccd2aa271039b3243f93bd049
tree5ccfce1d95ce099c57a990874b682b73c6f8c967
parent7522ddcbc597a704c0421bd098b38cbfeacf6f4b
- For RTL8188CUS/RTL8192CU, we have to force 8051 reset/enable before waiting
  for firmware to get ready.  It fixes "urtwn0: could not load firmware page"
  while running stsp@'s script: dhclient urtwn0; ifconfig urtwn0 down;
  ifconfig urtwn0 scan in a loop.

- Minor cleanup for rtwn_read_rom()/rtwn_get_txpower(); no need to use
  callbacks.

Tested by stsp@ and me.

ok stsp@
sys/dev/ic/r92creg.h
sys/dev/ic/rtwn.c
sys/dev/ic/rtwnvar.h