aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192ce/hw.c')
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192ce/hw.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c b/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c
index 944f55e9d316..bc6ae9dcf940 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c
@@ -488,7 +488,7 @@ void rtl92ce_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val)
488 case HW_VAR_CORRECT_TSF:{ 488 case HW_VAR_CORRECT_TSF:{
489 u8 btype_ibss = ((u8 *) (val))[0]; 489 u8 btype_ibss = ((u8 *) (val))[0];
490 490
491 if (btype_ibss == true) 491 if (btype_ibss)
492 _rtl92ce_stop_tx_beacon(hw); 492 _rtl92ce_stop_tx_beacon(hw);
493 493
494 _rtl92ce_set_bcn_ctrl_reg(hw, 0, BIT(3)); 494 _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)
500 500
501 _rtl92ce_set_bcn_ctrl_reg(hw, BIT(3), 0); 501 _rtl92ce_set_bcn_ctrl_reg(hw, BIT(3), 0);
502 502
503 if (btype_ibss == true) 503 if (btype_ibss)
504 _rtl92ce_resume_tx_beacon(hw); 504 _rtl92ce_resume_tx_beacon(hw);
505 505
506 break; 506 break;
@@ -1121,7 +1121,7 @@ void rtl92ce_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid)
1121 if (rtlpriv->psc.rfpwr_state != ERFON) 1121 if (rtlpriv->psc.rfpwr_state != ERFON)
1122 return; 1122 return;
1123 1123
1124 if (check_bssid == true) { 1124 if (check_bssid) {
1125 reg_rcr |= (RCR_CBSSID_DATA | RCR_CBSSID_BCN); 1125 reg_rcr |= (RCR_CBSSID_DATA | RCR_CBSSID_BCN);
1126 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_RCR, 1126 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_RCR,
1127 (u8 *) (&reg_rcr)); 1127 (u8 *) (&reg_rcr));
@@ -1585,7 +1585,7 @@ static void _rtl92ce_read_adapter_info(struct ieee80211_hw *hw)
1585 rtlefuse->autoload_failflag = false; 1585 rtlefuse->autoload_failflag = false;
1586 } 1586 }
1587 1587
1588 if (rtlefuse->autoload_failflag == true) 1588 if (rtlefuse->autoload_failflag)
1589 return; 1589 return;
1590 1590
1591 for (i = 0; i < 6; i += 2) { 1591 for (i = 0; i < 6; i += 2) {
@@ -1994,7 +1994,7 @@ bool rtl92ce_gpio_radio_on_off_checking(struct ieee80211_hw *hw, u8 *valid)
1994 u1tmp = rtl_read_byte(rtlpriv, REG_GPIO_IO_SEL); 1994 u1tmp = rtl_read_byte(rtlpriv, REG_GPIO_IO_SEL);
1995 e_rfpowerstate_toset = (u1tmp & BIT(3)) ? ERFON : ERFOFF; 1995 e_rfpowerstate_toset = (u1tmp & BIT(3)) ? ERFON : ERFOFF;
1996 1996
1997 if ((ppsc->hwradiooff == true) && (e_rfpowerstate_toset == ERFON)) { 1997 if ((ppsc->hwradiooff) && (e_rfpowerstate_toset == ERFON)) {
1998 RT_TRACE(rtlpriv, COMP_RF, DBG_DMESG, 1998 RT_TRACE(rtlpriv, COMP_RF, DBG_DMESG,
1999 ("GPIOChangeRF - HW Radio ON, RF ON\n")); 1999 ("GPIOChangeRF - HW Radio ON, RF ON\n"));
2000 2000