- Fix incorrect values in the computation of transmit power for the
authorkevlo <kevlo@openbsd.org>
Fri, 16 Jun 2017 14:57:51 +0000 (14:57 +0000)
committerkevlo <kevlo@openbsd.org>
Fri, 16 Jun 2017 14:57:51 +0000 (14:57 +0000)
commit34a2cadeaf3cc12eee053c33454e9eadb946f8f3
tree7257e59d37589b3d019fea9b5d3cfe8d9f9b2090
parent7f9b6e60bd29d00a4204a9aaa16b23194a9d5488
- Fix incorrect values in the computation of transmit power for the
  rtl8188eu chipset.
- Small code refactoring:
  - replace hardcoded rate indexes with their name, like athn(4).
  - replace fields offsets with the structure; from FreeBSD r294198.
  - be compliant with definitions of the efuse in vendor hal_pg.h and
    rename struct r92c_rom member names: s/channel_plan/reserved5/,
    s/xtal_calib/channel_plan.
  - no need to disable HWPDN twice in urtwn_r88e_power_on().

Tested by stsp@ and myself with RTL8188CUS, RTL8192CU, RTL8188EU, and
RTL8188CE devices.

ok stsp@
sys/dev/ic/r92creg.h
sys/dev/ic/rtwn.c
sys/dev/ic/rtwnvar.h
sys/dev/pci/if_rtwn.c
sys/dev/usb/if_urtwn.c