diff options
author | Mahati Chamarthy <mahati.chamarthy@gmail.com> | 2014-09-20 03:29:59 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-20 04:15:15 +0400 |
commit | 2be13f7b7c63cecc439876c8c06a5b30afdf46f9 (patch) | |
tree | 46157fa92604735f9ccc23bc4c8cb44153170c0e /drivers | |
parent | b9209a93edbccafb6c2f860bc0ddfe9eda1e3ccd (diff) | |
download | linux-2be13f7b7c63cecc439876c8c06a5b30afdf46f9.tar.xz |
Staging: rtl8192ee: rtl8192ee: Fix missing blank line warning
This fixes the following checkpatch.pl warnings:
WARNING: Missing a blank line after declarations
Signed-off-by: Mahati Chamarthy <mahati.chamarthy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rtl8192ee/rtl8192ee/dm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/rtl8192ee/rtl8192ee/dm.c b/drivers/staging/rtl8192ee/rtl8192ee/dm.c index 64254c4070f7..83dbbd60c852 100644 --- a/drivers/staging/rtl8192ee/rtl8192ee/dm.c +++ b/drivers/staging/rtl8192ee/rtl8192ee/dm.c @@ -156,6 +156,7 @@ static const u8 cckswing_table_ch14[CCK_TABLE_SIZE][8] = { static void rtl92ee_dm_diginit(struct ieee80211_hw *hw) { struct rtl_priv *rtlpriv = rtl_priv(hw); + dm_dig.cur_igvalue = rtl_get_bbreg(hw, DM_REG_IGI_A_11N, DM_BIT_IGI_11N); dm_dig.rssi_lowthresh = DM_DIG_THRESH_LOW; @@ -271,6 +272,7 @@ static void rtl92ee_dm_cck_packet_detection_thresh(struct ieee80211_hw *hw) { struct rtl_priv *rtlpriv = rtl_priv(hw); u8 cur_cck_cca_thresh; + if (rtlpriv->mac80211.link_state >= MAC80211_LINKED) { if (dm_dig.rssi_val_min > 25) { cur_cck_cca_thresh = 0xcd; @@ -434,6 +436,7 @@ static void rtl92ee_dm_dig(struct ieee80211_hw *hw) void rtl92ee_dm_write_cck_cca_thres(struct ieee80211_hw *hw, u8 cur_thres) { struct rtl_priv *rtlpriv = rtl_priv(hw); + if (dm_dig.cur_cck_cca_thres != cur_thres) rtl_write_byte(rtlpriv, DM_REG_CCK_CCA_11N, cur_thres); @@ -444,6 +447,7 @@ void rtl92ee_dm_write_cck_cca_thres(struct ieee80211_hw *hw, u8 cur_thres) void rtl92ee_dm_write_dig(struct ieee80211_hw *hw, u8 current_igi) { struct rtl_priv *rtlpriv = rtl_priv(hw); + if (dm_dig.stop_dig) return; @@ -459,6 +463,7 @@ void rtl92ee_dm_write_dig(struct ieee80211_hw *hw, u8 current_igi) static void rtl92ee_rssi_dump_to_register(struct ieee80211_hw *hw) { struct rtl_priv *rtlpriv = rtl_priv(hw); + rtl_write_byte(rtlpriv, RA_RSSIDUMP, rtlpriv->stats.rx_rssi_percentage[0]); rtl_write_byte(rtlpriv, RB_RSSIDUMP, @@ -540,6 +545,7 @@ static void rtl92ee_dm_check_rssi_monitor(struct ieee80211_hw *hw) spin_lock_bh(&rtlpriv->locks.entry_list_lock); list_for_each_entry(drv_priv, &rtlpriv->entry_list, list) { struct rssi_sta *stat = &(drv_priv->rssi_stat); + if (stat->undecorated_smoothed_pwdb < min) min = stat->undecorated_smoothed_pwdb; if (stat->undecorated_smoothed_pwdb > max) @@ -660,6 +666,7 @@ static void rtl92ee_dm_check_edca_turbo(struct ieee80211_hw *hw) } else { if (rtlpriv->dm.bcurrent_turbo_edca) { u8 tmp = AC0_BE; + rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_AC_PARAM, (u8 *) (&tmp)); } |