Searched refs:diff_pwr (Results 1 – 1 of 1) sorted by relevance
876 int curr_pwr, diff_pwr; in mt7601u_tssi_cal() local912 diff_pwr = params.trgt_power - curr_pwr; in mt7601u_tssi_cal()913 dev_dbg(dev->dev, "Power curr:%08x diff:%08x\n", curr_pwr, diff_pwr); in mt7601u_tssi_cal()915 if (params.tssi0 > 126 && diff_pwr > 0) { in mt7601u_tssi_cal()917 diff_pwr = 0; in mt7601u_tssi_cal()919 if (params.tssi0 - tssi_init < 1 && diff_pwr < 0) { in mt7601u_tssi_cal()921 diff_pwr = 0; in mt7601u_tssi_cal()924 if ((dev->prev_pwr_diff ^ diff_pwr) < 0 && abs(diff_pwr) < 4096 && in mt7601u_tssi_cal()925 (abs(diff_pwr) > abs(dev->prev_pwr_diff) || in mt7601u_tssi_cal()926 (diff_pwr > 0 && diff_pwr == -dev->prev_pwr_diff))) in mt7601u_tssi_cal()[all …]