diff options
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192cu/hw.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c index 52e2af58c1ed..2b34764fbf73 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/hw.c | |||
@@ -520,7 +520,7 @@ static void _rtl92cu_read_adapter_info(struct ieee80211_hw *hw) | |||
520 | RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, ("Autoload OK\n")); | 520 | RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, ("Autoload OK\n")); |
521 | rtlefuse->autoload_failflag = false; | 521 | rtlefuse->autoload_failflag = false; |
522 | } | 522 | } |
523 | if (rtlefuse->autoload_failflag == true) | 523 | if (rtlefuse->autoload_failflag) |
524 | return; | 524 | return; |
525 | for (i = 0; i < 6; i += 2) { | 525 | for (i = 0; i < 6; i += 2) { |
526 | usvalue = *(u16 *)&hwinfo[EEPROM_MAC_ADDR + i]; | 526 | usvalue = *(u16 *)&hwinfo[EEPROM_MAC_ADDR + i]; |
@@ -1594,7 +1594,7 @@ static void _rtl92cu_set_check_bssid(struct ieee80211_hw *hw, | |||
1594 | default: | 1594 | default: |
1595 | break; | 1595 | break; |
1596 | } | 1596 | } |
1597 | if (filterout_non_associated_bssid == true) { | 1597 | if (filterout_non_associated_bssid) { |
1598 | if (IS_NORMAL_CHIP(rtlhal->version)) { | 1598 | if (IS_NORMAL_CHIP(rtlhal->version)) { |
1599 | switch (rtlphy->current_io_type) { | 1599 | switch (rtlphy->current_io_type) { |
1600 | case IO_CMD_RESUME_DM_BY_SCAN: | 1600 | case IO_CMD_RESUME_DM_BY_SCAN: |
@@ -2155,7 +2155,7 @@ void rtl92cu_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) | |||
2155 | case HW_VAR_CORRECT_TSF:{ | 2155 | case HW_VAR_CORRECT_TSF:{ |
2156 | u8 btype_ibss = ((u8 *) (val))[0]; | 2156 | u8 btype_ibss = ((u8 *) (val))[0]; |
2157 | 2157 | ||
2158 | if (btype_ibss == true) | 2158 | if (btype_ibss) |
2159 | _rtl92cu_stop_tx_beacon(hw); | 2159 | _rtl92cu_stop_tx_beacon(hw); |
2160 | _rtl92cu_set_bcn_ctrl_reg(hw, 0, BIT(3)); | 2160 | _rtl92cu_set_bcn_ctrl_reg(hw, 0, BIT(3)); |
2161 | rtl_write_dword(rtlpriv, REG_TSFTR, (u32)(mac->tsf & | 2161 | rtl_write_dword(rtlpriv, REG_TSFTR, (u32)(mac->tsf & |
@@ -2163,7 +2163,7 @@ void rtl92cu_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) | |||
2163 | rtl_write_dword(rtlpriv, REG_TSFTR + 4, | 2163 | rtl_write_dword(rtlpriv, REG_TSFTR + 4, |
2164 | (u32)((mac->tsf >> 32) & 0xffffffff)); | 2164 | (u32)((mac->tsf >> 32) & 0xffffffff)); |
2165 | _rtl92cu_set_bcn_ctrl_reg(hw, BIT(3), 0); | 2165 | _rtl92cu_set_bcn_ctrl_reg(hw, BIT(3), 0); |
2166 | if (btype_ibss == true) | 2166 | if (btype_ibss) |
2167 | _rtl92cu_resume_tx_beacon(hw); | 2167 | _rtl92cu_resume_tx_beacon(hw); |
2168 | break; | 2168 | break; |
2169 | } | 2169 | } |