|
@@ -488,7 +488,7 @@ void rtl92ce_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
|
|
case HW_VAR_CORRECT_TSF:{
|
|
case HW_VAR_CORRECT_TSF:{
|
|
u8 btype_ibss = ((u8 *) (val))[0];
|
|
u8 btype_ibss = ((u8 *) (val))[0];
|
|
|
|
|
|
- if (btype_ibss == true)
|
|
|
|
|
|
+ if (btype_ibss)
|
|
_rtl92ce_stop_tx_beacon(hw);
|
|
_rtl92ce_stop_tx_beacon(hw);
|
|
|
|
|
|
_rtl92ce_set_bcn_ctrl_reg(hw, 0, BIT(3));
|
|
_rtl92ce_set_bcn_ctrl_reg(hw, 0, BIT(3));
|
|
@@ -500,7 +500,7 @@ void rtl92ce_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
|
|
|
|
|
|
_rtl92ce_set_bcn_ctrl_reg(hw, BIT(3), 0);
|
|
_rtl92ce_set_bcn_ctrl_reg(hw, BIT(3), 0);
|
|
|
|
|
|
- if (btype_ibss == true)
|
|
|
|
|
|
+ if (btype_ibss)
|
|
_rtl92ce_resume_tx_beacon(hw);
|
|
_rtl92ce_resume_tx_beacon(hw);
|
|
|
|
|
|
break;
|
|
break;
|
|
@@ -1121,7 +1121,7 @@ void rtl92ce_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid)
|
|
if (rtlpriv->psc.rfpwr_state != ERFON)
|
|
if (rtlpriv->psc.rfpwr_state != ERFON)
|
|
return;
|
|
return;
|
|
|
|
|
|
- if (check_bssid == true) {
|
|
|
|
|
|
+ if (check_bssid) {
|
|
reg_rcr |= (RCR_CBSSID_DATA | RCR_CBSSID_BCN);
|
|
reg_rcr |= (RCR_CBSSID_DATA | RCR_CBSSID_BCN);
|
|
rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_RCR,
|
|
rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_RCR,
|
|
(u8 *) (®_rcr));
|
|
(u8 *) (®_rcr));
|
|
@@ -1585,7 +1585,7 @@ static void _rtl92ce_read_adapter_info(struct ieee80211_hw *hw)
|
|
rtlefuse->autoload_failflag = false;
|
|
rtlefuse->autoload_failflag = false;
|
|
}
|
|
}
|
|
|
|
|
|
- if (rtlefuse->autoload_failflag == true)
|
|
|
|
|
|
+ if (rtlefuse->autoload_failflag)
|
|
return;
|
|
return;
|
|
|
|
|
|
for (i = 0; i < 6; i += 2) {
|
|
for (i = 0; i < 6; i += 2) {
|
|
@@ -1994,7 +1994,7 @@ bool rtl92ce_gpio_radio_on_off_checking(struct ieee80211_hw *hw, u8 *valid)
|
|
u1tmp = rtl_read_byte(rtlpriv, REG_GPIO_IO_SEL);
|
|
u1tmp = rtl_read_byte(rtlpriv, REG_GPIO_IO_SEL);
|
|
e_rfpowerstate_toset = (u1tmp & BIT(3)) ? ERFON : ERFOFF;
|
|
e_rfpowerstate_toset = (u1tmp & BIT(3)) ? ERFON : ERFOFF;
|
|
|
|
|
|
- if ((ppsc->hwradiooff == true) && (e_rfpowerstate_toset == ERFON)) {
|
|
|
|
|
|
+ if ((ppsc->hwradiooff) && (e_rfpowerstate_toset == ERFON)) {
|
|
RT_TRACE(rtlpriv, COMP_RF, DBG_DMESG,
|
|
RT_TRACE(rtlpriv, COMP_RF, DBG_DMESG,
|
|
("GPIOChangeRF - HW Radio ON, RF ON\n"));
|
|
("GPIOChangeRF - HW Radio ON, RF ON\n"));
|
|
|
|
|