mirror of
https://github.com/RinCat/RTL88x2BU-Linux-Driver.git
synced 2024-12-26 01:51:34 +00:00
Fix: ‘~’ on a boolean expression
This commit is contained in:
parent
1ba60af791
commit
aae57d0dc5
@ -2477,7 +2477,7 @@ void halbtc8822b1ant_set_ext_ant_switch(IN struct btc_coexist *btcoexist,
|
|||||||
* 0xcbd[1:0] = 2b'10 => Ant to WLG
|
* 0xcbd[1:0] = 2b'10 => Ant to WLG
|
||||||
*/
|
*/
|
||||||
switch_polatiry_inverse = (rfe_type->ext_ant_switch_ctrl_polarity == 1 ?
|
switch_polatiry_inverse = (rfe_type->ext_ant_switch_ctrl_polarity == 1 ?
|
||||||
~switch_polatiry_inverse : switch_polatiry_inverse);
|
!switch_polatiry_inverse : switch_polatiry_inverse);
|
||||||
|
|
||||||
|
|
||||||
switch (pos_type) {
|
switch (pos_type) {
|
||||||
|
@ -456,9 +456,9 @@ _iqk_reload_iqk_setting_8822b(
|
|||||||
odm_write_4byte(dm, 0x1bd8, ((0xc0000000 >> idx) + 0x1) + (i * 4) + (iqk_info->iqk_cfir_imag[channel][path][idx][i] << 9));
|
odm_write_4byte(dm, 0x1bd8, ((0xc0000000 >> idx) + 0x1) + (i * 4) + (iqk_info->iqk_cfir_imag[channel][path][idx][i] << 9));
|
||||||
}
|
}
|
||||||
if (idx == 0)
|
if (idx == 0)
|
||||||
odm_set_bb_reg(dm, iqk_apply[path], BIT(0), ~(iqk_info->iqk_fail_report[channel][path][idx]));
|
odm_set_bb_reg(dm, iqk_apply[path], BIT(0), !(iqk_info->iqk_fail_report[channel][path][idx]));
|
||||||
else
|
else
|
||||||
odm_set_bb_reg(dm, iqk_apply[path], BIT(10), ~(iqk_info->iqk_fail_report[channel][path][idx]));
|
odm_set_bb_reg(dm, iqk_apply[path], BIT(10), !(iqk_info->iqk_fail_report[channel][path][idx]));
|
||||||
}
|
}
|
||||||
odm_set_bb_reg(dm, 0x1bd8, MASKDWORD, 0x0);
|
odm_set_bb_reg(dm, 0x1bd8, MASKDWORD, 0x0);
|
||||||
odm_set_bb_reg(dm, 0x1b0c, BIT(13) | BIT(12), 0x0);
|
odm_set_bb_reg(dm, 0x1b0c, BIT(13) | BIT(12), 0x0);
|
||||||
|
Loading…
Reference in New Issue
Block a user