wlc_nphy_aci(..., u8 enable, int aci_pwr)
If aci_state & 2 is not zero
- was_active = 1
- Otherwise
- was_active = 0
- If enable is not zero
- If was_active is not zero
- return
Set bit 2 in aci_state
Read Radio Register 0x66 and save in nphy_interference_save.radio_2055_core1_rxrf_spc1
Read Radio Register 0x95 and save in nphy_interference_save.radio_2055_core2_rxrf_spc1
Bitwise OR nphy_interference_save.radio_2055_core1_rxrf_spc1 with 2 and write to Radio Register 0x66
Bitwise OR nphy_interference_save.radio_2055_core2_rxrf_spc1 with 2 and write to Radio Register 0x95
Copy nphy_gain_boost to nphy_interference_save.gain_boost
Set nphy_gain_boost to 0
Read Radio Register 0x71 and save in nphy_interference_save.radio_2055_core1_rxbb_rxcal_ctrl
Read Radio Register 0xA0 and save in nphy_interference_save.radio_2055_core2_rxbb_rxcal_ctrl
Read Radio Register 0x2B and add 0xC
- If the result is less than 0x1F
- Bitwise OR that result with 0x20 and store in rccal_val
- Otherwise
- Store 0x3F in rccal_val
Write rccal_val in Radio Register 0x71
Write rccal_val in Radio Register 0xA0
Write nphy_interference_save.overideDigiGain1 to PHY Register 0x153
Write nphy_interference_save.bphy_peak_energy_lo to PHY Register 0xC33
Set bit 0x8 in PHY Register 0x153
MaskSet PHY Register 0x153 with mask 0xFFF8 and set with 0x4
Write 0xC0 to PHY Register 0xC33
- Set hpf_code to 5
Read PHY Register 0x20 and save in nphy_interference_save.init_gain_code_core1
Read PHY Register 0x36 and save in nphy_interference_save.init_gain_code_core2
Write 0x1D06 to PHY Register 0x72
- Loop 4 times with loop index i
Read PHY Register 0x73 and save in nphy_interference_save.init_gain_table[i]
MaskSet PHY Register 0x20 with mask 0xF07F and set with hpf_code << 7
MaskSet PHY Register 0x36 with mask 0xF07F and set with hpf_code << 7
Write 0x1D6 to PHY Register 0x72
- Loop 4 times with loop index i
Write (hpf_code << 8) | 0x7C to PHY Register 0x73
Read PHY Register 0x21 and save in nphy_interference_save.clip1_hi_gain_code_core1
Read PHY Register 0x37 and save in nphy_interference_save.clip1_hi_gain_code_core2
Write 0x10BE to PHY Register 0x21
Write 0x10BE to PHY Register 0x37
Read PHY Register 0x22 and save in nphy_interference_save.clip1_md_gain_code_core1
Read PHY Register 0x38 and save in nphy_interference_save.clip1_md_gain_code_core2
Write 0x101E to PHY Register 0x22
Write 0x101E to PHY Register 0x38
Read PHY Register 0x23 and save in nphy_interference_save.clip1_lo_gain_code_core1
Read PHY Register 0x39 and save in nphy_interference_save.clip1_lo_gain_code_core2
Write 0x203E to PHY Register 0x23
Write 0x203E to PHY Register 0x39
Read PHY Register 0x28 and save in nphy_interference_save.nb_clip_thresh_core1
Read PHY Register 0x41 and save in nphy_interference_save.nb_clip_thresh_core2
Write 0x53 to PHY Register 0x28
Write 0x53 to PHY Register 0x41
Read PHY Register 0x27 and save in nphy_interference_save.w1_clip_thresh_core1
Read PHY Register 0x3D and save in nphy_interference_save.w1_clip_thresh_core2
MaskSet PHY Register 0x27 with mask 0xFFC0 and set with 0x0014
MaskSet PHY Register 0x3D with mask 0xFFC0 and set with 0x0014
Read PHY Register 0x1D and save in nphy_interference_save.cck_compute_gain_info_core1
Read PHY Register 0x33 and save in nphy_interference_save.cck_compute_gain_info_core2
MaskSet PHY Register 0x1D with mask 0xFE1F and set with 0x0080
MaskSet PHY Register 0x33 with mask 0xFE1F and set with 0x0080
Read PHY Register 0x6A and save in nphy_interference_save.energy_drop_timeout_len
Write 0x2 to PHY Register 0x6A
Read PHY Register 0x1D7 and save in nphy_interference_save.crs_threshold2u
Write 0x2078 to PHY Register 0x1D7
N PHY Update ACI Power with argument aci_pwr
- If was_active is not zero
- Otherwise
- If was_active is zero
- Return
Copy nphy_interference_save.gain_boost to nphy_gain_boost
Write nphy_interference_save.radio_2055_core1_rxrf_spc1 to Radio Register 0x66
Write nphy_interference_save.radio_2055_core2_rxrf_spc1 to Radio Register 0x95
Write nphy_interference_save.radio_2055_core1_rxbb_rxcal_ctrl to Radio Register 0x71
Write nphy_interference_save.radio_2055_core2_rxbb_rxcal_ctrl to Radio Register 0xA0
Write nphy_interference_save.overideDigiGain1 to PHY Register 0x153
Write nphy_interference_save.bphy_peak_energy_lo to PHY Register 0xC33
Write nphy_interference_save.init_gain_code_core1 to PHY Register 0x20
Write nphy_interference_save.init_gain_code_core2 to PHY Register 0x36
Write 0x1D06 to PHY Register 0x73
- Loop 4 times with index i
Write nphy_interference_save.init_gain_table[i] to PHY Register 0x73
Write nphy_interference_save.clip1_hi_gain_code_core1 to PHY Register 0x21
Write nphy_interference_save.clip1_hi_gain_code_core2 to PHY Register 0x37
Write nphy_interference_save.clip1_md_gain_code_core1 to PHY Register 0x22
Write nphy_interference_save.clip1_md_gain_code_core2 to PHY Register 0x38
Write nphy_interference_save.clip1_lo_gain_code_core1 to PHY Register 0x23
Write nphy_interference_save.clip1_lo_gain_code_core2 to PHY Register 0x39
Write nphy_interference_save.nb_clip_thresh_core1 to PHY Register 0x2B
Write nphy_interference_save.nb_clip_thresh_core2 to PHY Register 0x41
Write nphy_interference_save.w1_clip_thresh_core1 to PHY Register 0x27
Write nphy_interference_save.w1_clip_thresh_core2 to PHY Register 0x3D
Write nphy_interference_save.cck_compute_gain_info_core1 to PHY Register 0x1D
Write nphy_interference_save.cck_compute_gain_info_core2 to PHY Register 0x33
Write nphy_interference_save.energy_drop_timeout_len to PHY Register 0x6A
Write nphy_interference_save.crs_threshold2u to PHY Register 0x1D7
- If was_active is zero