bcm-v4

[Specification

N PHY Adjust Min Noise Variable (int ntones, int tone buffer, u32 noise buffer)

  1. If the current channel width is 40 MHz
    1. Set a table length to 256
  2. Otherwise
    1. Set table length to 128
  3. If nphy_noisevars_adjusted

    1. Loop nphy_saved_noisevars.bufcount times with i as loop index

      1. Set id to the i'th element of nphy_saved_noisevars.tone_id

      2. If id >= 0

        1. Set offset to id * 2 + 1
      3. Otherwise
        1. Set offset to the table length + id * 2 + 1
      4. Write the N PHY table with ID 16, length 1, offset as above, width 32, and the data given by the i'th element of nphy_saved_noisevars.min_noise_vars

    2. Set nphy_saved_noisevars.bufcount to 0

    3. Set nphy_noisevars_adjusted to 0

  4. If the noise and tone buffer pointers are both not NULL
    1. Set nphy_saved_noisevars.bufcount to 0

    2. Loop ntones times with i as index
      1. Set id to the i'th element of the tone buffer
      2. If id >= 0

        1. Set offset to 2 * id + 1
      3. Otherwise
        1. Set offset to the table length + 2 * id + 1
      4. Read the N PHY table with ID 16, length 1, offset as above, width 32, and the data given by the i'th element of nphy_saved_noisevars.min_noise_vars

      5. Write the N PHY table with ID 16, length 1, offset as above, width 32, and the data given by the i'th element of the noise buffer
      6. Increment nphy_saved_noisevars.bufcount

    3. Set nphy_noisevars_adjusted to 1


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