freebsd-nq/sys/dev/ral
Sepherosa Ziehau 4d494753eb Various bug fixes for 2560 parts of ral(4):
- Rename rt2560_read_eeprom to rt2560_read_config, we already have
  rt2560_eeprom_read
- 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
  off.
- 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.
2008-02-03 11:47:38 +00:00
..
if_ral_pci.c Update 802.11 wireless support: 2007-06-11 03:36:55 +00:00
if_ralrate.c
if_ralrate.h
rt2560.c Various bug fixes for 2560 parts of ral(4): 2008-02-03 11:47:38 +00:00
rt2560reg.h Various bug fixes for 2560 parts of ral(4): 2008-02-03 11:47:38 +00:00
rt2560var.h Various bug fixes for 2560 parts of ral(4): 2008-02-03 11:47:38 +00:00
rt2661_ucode.h Import microcodes for RT2561, RT2561S and RT2661 chipsets. 2006-03-05 20:41:51 +00:00
rt2661.c Check wep flag in *_tx_mgt since we need to encrypt some management frame 2007-11-06 07:30:12 +00:00
rt2661reg.h Update 802.11 wireless support: 2007-06-11 03:36:55 +00:00
rt2661var.h Update 802.11 wireless support: 2007-06-11 03:36:55 +00:00