bcm-v4

[Specification

LP PHY PAPD Cal TXpwr

  1. Create lpphy_txcalgains structures named txgains and oldgains
  2. Read PHY Register 0xA4, mask with 0xE000, and save as oldpower
  3. Set oldoverride to ((PHY Register 0x43B & 0x0040) != 0)

  4. If oldoverride is not zero
    1. Call LP PHY Get TX Gain with oldgains as argument

  5. Set oldrf to PHY Register 0x4D3 & 0x00FF

  6. Set oldbbmult to the value returned by LP PHY Get BB Mult

  7. Call LP PHY Set TX Power Control with 0 as argument

  8. Store 1 at the useindex member of txgains
  9. If this is a 4325 AND the chip revision is 0
    1. Store 30 at the index member of txgains
  10. Otherwise
    1. Store 65 at the index member of txgains
  11. Call LP PHY PAPD Cal with arguments &txgains and 0

  12. If oldoverride not zero
    1. Call LP PHY Set TX Gain with oldgains as argument

  13. Call LP PHY Set BB Mult with oldbbmult as argument

  14. Call LP PHY Set TX Power Control with oldpower as argument

  15. Maskset PHY Register 0x4D3 with mask 0xFF00 and set with oldrf

Exported/Archived from the wiki to HTML on 2016-10-27