cvs commit: src/sys/dev/netif/ral rt2661.c rt2661var.h rt2661reg.h

Sepherosa Ziehau sephe at
Sun Apr 22 02:15:37 PDT 2007

sephe       2007/04/22 02:14:46 PDT

DragonFly src repository

  Modified files:
    sys/dev/netif/ral    rt2661.c rt2661var.h rt2661reg.h 
  - Define macro for the number of channels.  Use it instead of the magic
  - Define maximum and default channel TX power.
  - The EEPROM regions, which contain 5GHz and 2GHz channels' TX power, are
    not contiguous.  Add rt2661_read_txpower_config() to read them seperately.
  - Lower channel's TX power is in the lower byte of the 16bits EEPROM value,
    while upper channel's TX power is in the upper byte of the 16bits EEPROM
  - Channel's TX power should never exceed maximum channel TX power, if it is
    set it to default channel TX power.
  - Rename rt2661_read_eeprom() to rt2661_read_config(), since we already have
  EEPROM layout, EEPROM values' layout and various limit values are obtained
  from Ralink RT61 Linux driver.
  Revision  Changes    Path
  1.18      +54 -14    src/sys/dev/netif/ral/rt2661.c
  1.6       +3 -1      src/sys/dev/netif/ral/rt2661var.h
  1.6       +5 -1      src/sys/dev/netif/ral/rt2661reg.h

More information about the Commits mailing list