aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rtlwifi/rtl8192se/hw.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192se/hw.c')
-rw-r--r--drivers/net/wireless/rtlwifi/rtl8192se/hw.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192se/hw.c b/drivers/net/wireless/rtlwifi/rtl8192se/hw.c
index 35dd12d0dcf3..13da7b3c0202 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192se/hw.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192se/hw.c
@@ -516,7 +516,7 @@ static u8 _rtl92se_rf_onoff_detect(struct ieee80211_hw *hw)
516 mdelay(10); 516 mdelay(10);
517 517
518 /* check GPIO3 */ 518 /* check GPIO3 */
519 u1tmp = rtl_read_byte(rtlpriv, GPIO_IN); 519 u1tmp = rtl_read_byte(rtlpriv, GPIO_IN_SE);
520 retval = (u1tmp & HAL_8192S_HW_GPIO_OFF_BIT) ? ERFON : ERFOFF; 520 retval = (u1tmp & HAL_8192S_HW_GPIO_OFF_BIT) ? ERFON : ERFOFF;
521 521
522 return retval; 522 return retval;
@@ -994,7 +994,8 @@ int rtl92se_hw_init(struct ieee80211_hw *hw)
994 994
995 rtlpriv->psc.rfoff_reason = RF_CHANGE_BY_INIT; 995 rtlpriv->psc.rfoff_reason = RF_CHANGE_BY_INIT;
996 rtlpriv->psc.rfpwr_state = ERFON; 996 rtlpriv->psc.rfpwr_state = ERFON;
997 rtl_ps_set_rf_state(hw, ERFOFF, rfoffreason, true); 997 /* FIXME: check spinlocks if this block is uncommented */
998 rtl_ps_set_rf_state(hw, ERFOFF, rfoffreason);
998 } else { 999 } else {
999 /* gpio radio on/off is out of adapter start */ 1000 /* gpio radio on/off is out of adapter start */
1000 if (rtlpriv->psc.hwradiooff == false) { 1001 if (rtlpriv->psc.hwradiooff == false) {
@@ -1105,7 +1106,7 @@ void rtl92se_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid)
1105 if (rtlpriv->psc.rfpwr_state != ERFON) 1106 if (rtlpriv->psc.rfpwr_state != ERFON)
1106 return; 1107 return;
1107 1108
1108 if (check_bssid == true) { 1109 if (check_bssid) {
1109 reg_rcr |= (RCR_CBSSID); 1110 reg_rcr |= (RCR_CBSSID);
1110 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_RCR, (u8 *)(&reg_rcr)); 1111 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_RCR, (u8 *)(&reg_rcr));
1111 } else if (check_bssid == false) { 1112 } else if (check_bssid == false) {
@@ -1651,7 +1652,7 @@ static void _rtl92se_read_adapter_info(struct ieee80211_hw *hw)
1651 rtlefuse->autoload_failflag = false; 1652 rtlefuse->autoload_failflag = false;
1652 } 1653 }
1653 1654
1654 if (rtlefuse->autoload_failflag == true) 1655 if (rtlefuse->autoload_failflag)
1655 return; 1656 return;
1656 1657
1657 _rtl8192se_get_IC_Inferiority(hw); 1658 _rtl8192se_get_IC_Inferiority(hw);
@@ -2301,7 +2302,7 @@ bool rtl92se_gpio_radio_on_off_checking(struct ieee80211_hw *hw, u8 *valid)
2301 2302
2302 rfpwr_toset = _rtl92se_rf_onoff_detect(hw); 2303 rfpwr_toset = _rtl92se_rf_onoff_detect(hw);
2303 2304
2304 if ((ppsc->hwradiooff == true) && (rfpwr_toset == ERFON)) { 2305 if ((ppsc->hwradiooff) && (rfpwr_toset == ERFON)) {
2305 RT_TRACE(rtlpriv, COMP_RF, DBG_DMESG, 2306 RT_TRACE(rtlpriv, COMP_RF, DBG_DMESG,
2306 ("RFKILL-HW Radio ON, RF ON\n")); 2307 ("RFKILL-HW Radio ON, RF ON\n"));
2307 2308