LP PHY Read Band Srom
- If the current band is 5 GHz
Read SPROM variable tri5gl and save in lpphy_tr_isolation_low
Read SPROM variable tri5g and save in lpphy_tr_isolation_med
Read SPROM variable tri5gh and save in lpphy_tr_isolation_hi
Read SPROM variable bxa5g and save in lpphy_bxarch
Read SPROM variable rxpo5g and save in lpphy_rx_power_offset
Read SPROM variable rssismf5g and save in lpphy_rssi_vf
Read SPROM variable rssismc5g and save in lpphy_rssi_vc
Read SPROM variable rssisav5g and save in lpphy_rssi_gs
Read SPROM variable pa1maxpwr - this is tmp1
Read SPROM variable pa1bX and save in txpa[X], X = 0,1,2
Read SPROM variable pa1lobX and save in txpal[X], X = 0,1,2
Read SPROM variable pa1hibX and save in txpah[X], X = 0,1,2
Read SPROM variable ofdmapo - this is tmp2
Save tmp1 in txpwr_srom_max[1]
- Loop 8 times with index starting at 4
Calculate tmp1 - (tmp2 & 0xF) * 2 and save in tx_srom_max_rate[index]
- Right shift tmp2 by 4
Read SPROM variable ofdmalpo - this is tmp2
Read SPROM variable pa1lomaxpwr - this is tmp1
Save tmp1 in txpwr_srom_max[0]
- Loop 8 times with index starting at 4
Calculate tmp1 - (tmp2 & 0xF) * 2 and save in tx_srom_max_ratel[index]
- Right shift tmp2 by 4
Read SPROM variable ofdmahpo - this is tmp2
Read SPROM variable pa1himaxpwr - this is tmp1
Save tmp1 in txpwr_srom_max[2]
- Loop 8 times with index starting at 4
Calculate tmp1 - (tmp2 & 0xF) * 2 and save in tx_srom_max_rateh[index]
- Right shift tmp2 by 4
- Otherwise
Read SPROM variable tri2g and save in lpphy_tr_isolation_med
Read SPROM variable bxa2g and save in lpphy_bx_arch
Read SPROM variable rxpo2g and save in lpphy_rx_power_offset
Read SPROM variable rssismf2g and save in lpphy_rssi_vf
Read SPROM variable rssismc2g and save in lpphy_rssi_vc
Read SPROM variable rssisav2g and save in lpphy_rssi_gs
Read SPROM variable pa0maxpwr - this is tmp1
Save tmp1 in txpwr_srom_max[1]
Read SPROM variable pa0bX and save in txpa[X], X = 0,1,2
Read SPROM variable cckp0 - this is tmp3
- If tmp3 is not zero
Read SPROM variable ofdmgpo - this is tmp2
- Loop 4 times with index starting at 0
Calculate tmp1 - (tmp2 & 0xF) * 2 and save in tx_srom_max_rate[index]
- Right shift tmp2 by 4
Read SPROM variable ofdmgpo - this is tmp2
- Loop 11 times with index starting at 4
Calculate tmp1 - (tmp2 & 0xF) * 2 and save in tx_srom_max_rate[index]
- Right shift tmp2 by 4
- Otherwise
Read SPROM variable opo - this is tmp2
- Loop 4 times with index starting at 0
Save tmp1 as tx_srom_max_rate[index]
- Loop 11 times with index starting at 4
Save tmp1 - tmp2 as tx_srom_max_rate[index]