cvs commit: src/sys/dev/ral rt2560.c rt2560reg.h rt2560var.h

Sepherosa Ziehau sephe at
Sun Feb 3 03:47:38 PST 2008

sephe       2008-02-03 11:47:38 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/ral          rt2560.c rt2560reg.h rt2560var.h 
  Various bug fixes for 2560 parts of ral(4):
  - Rename rt2560_read_eeprom to rt2560_read_config, we already have
  - If hardware gives us wrong encryption done index, shout out loudly and
    terminate the processing loop
  - Process encryption done if RX done bit is set in interrupt status register
    (according to Ralink Linux driver)
  - Turn VALID/BUSY bits in TX descriptor only after TX descriptor is fully setup
  - Fix BBP read: RT2560_BBPCSR can't be written until its RT2560_BBP_BUSY bit is
    off (according to Ralink Linux driver)
  - Skip invalid (0 of 0xffff) BBP register/value entries stored in EEPROM
  - Fix channel TX power location in EEPROM, if channel TX power is above 31 set
    it to 24 (TX power only has 5bits in RF register, "24" is according to Ralink
    Linux driver)
  - Configure BBP according to the BBP register/value stored in EEPROM, restore
    BBP17 (RX sensitivity tuning) to default value after this.
  - Set TX/RX antenna after BBP is initialized; these two operation will try to
    set BBP registers
  - Reconfigure ACK TX time registers according to 802.11g standard (TX @36Mb,
    other side's ACK should be sent @24Mb).
  - 2560 parts have two TX ring: one for management/control packets, one for data
    packets.  Add private OACTIVE flag for each of them.  Turn on IFF_DRV_OACTIVE
    if one of private OACTIVE is on; turn off IFF_DRV_OACTIVE iff all of them are
  - Rework watchdog to mimic old if_watchdog action.  Process TX done/encryption
    done in watchdog function (according to Ralink Linux driver)
  Obtained from: DragonFly
  Approved by: sam (mentor)
  Tested by: sam
  Related to PR: kern/117655
  # Forcing long slot time setting is not included in this commit, comment and
  # related code is in place, so if problem pops up, quick tests could be done.
  Revision  Changes    Path
  1.19      +109 -33   src/sys/dev/ral/rt2560.c
  1.3       +2 -2      src/sys/dev/ral/rt2560reg.h
  1.4       +4 -2      src/sys/dev/ral/rt2560var.h

More information about the cvs-src mailing list