bcm-v4

[Specification

bool Phy Interference ( int mode, bool init)

  1. If init is true
    1. Set interference_mode_crs_time to 0

    2. Set crsglitch_prev to 0

  2. If this is a G PHY or this is an N PHY operating at 2 GHz
    1. If mode equals 0
      1. If cur_interference_mode is 2 or 3

        1. If this is an LP PHY
          1. Call LP PHY ACI with argument 0

        2. Else if this is an N PHY
          1. Call N PHY ACI Control with ( 0, 0 ) as arguments

        3. Otherwise
          1. Call G PHY ACI Control with 0 as argument

        4. Set aci_state to 0

      2. Else if cur_interference_mode is 1

        1. If this is an N PHY
          1. This is an error condition.
        2. Otherwise
          1. Set interference_mode_crs to 0

          2. Call G PHY Interference NW Lan Set with 0 as argument

    2. Otherwise
      1. If mode is 1
        1. If this is an LP PHY
          1. This is an error condition.
        2. Else if this is an N PHY
          1. This is an error condition.
        3. Otherwise
          1. Set interference_mode_crs to 1

          2. Call G PHY Interference NW Lan Set with 1 as argument

      2. If mode is 3
        1. Set bit 4 in aci_state

      3. If mode is 2 OR (mode is 3 AND ((aci_state AND 2) is zero AND this is not an N PHY))

        1. If this is an LP PHY
          1. Call LP PHY ACI with argument 1

        2. Else if this is an N PHY
          1. Call N PHY ACI Control with arguments ( 1, 3 )

        3. Otherwise
          1. Call G PHY ACI Control with argument 1

  3. Set cur_interference_mode to mode

  4. Return 1

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