Commit dac67975 authored by Daniel Stamer's avatar Daniel Stamer Committed by John W. Linville

rtlwifi: rtl8192se: Fixed coding style issues in the driver

This patch fixes almost all coding issues in the rtl8192se driver. Only
exception is putting trailing */ on separate lines.
Signed-off-by: default avatarDaniel Stamer <daniel@stamer.info>
Acked-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 904f137d
...@@ -522,8 +522,7 @@ enum fwcmd_iotype { ...@@ -522,8 +522,7 @@ enum fwcmd_iotype {
FW_CMD_IQK_ENABLE = 30, FW_CMD_IQK_ENABLE = 30,
}; };
/* /* Driver info contain PHY status
* Driver info contain PHY status
* and other variabel size info * and other variabel size info
* PHY Status content as below * PHY Status content as below
*/ */
......
...@@ -465,8 +465,8 @@ static void _rtl92s_dm_initial_gain_sta_beforeconnect(struct ieee80211_hw *hw) ...@@ -465,8 +465,8 @@ static void _rtl92s_dm_initial_gain_sta_beforeconnect(struct ieee80211_hw *hw)
digtable->cur_igvalue = digtable->cur_igvalue =
digtable->rx_gain_range_min; digtable->rx_gain_range_min;
else else
digtable->cur_igvalue = digtable->rssi_val + 10 - digtable->cur_igvalue = digtable->rssi_val + 10
digtable->back_val; - digtable->back_val;
if (falsealm_cnt->cnt_all > 10000) if (falsealm_cnt->cnt_all > 10000)
digtable->cur_igvalue = digtable->cur_igvalue =
...@@ -518,7 +518,7 @@ static void _rtl92s_dm_initial_gain_sta_beforeconnect(struct ieee80211_hw *hw) ...@@ -518,7 +518,7 @@ static void _rtl92s_dm_initial_gain_sta_beforeconnect(struct ieee80211_hw *hw)
static void _rtl92s_dm_ctrl_initgain_bytwoport(struct ieee80211_hw *hw) static void _rtl92s_dm_ctrl_initgain_bytwoport(struct ieee80211_hw *hw)
{ {
struct rtl_priv *rtlpriv = rtl_priv(hw); struct rtl_priv *rtlpriv = rtl_priv(hw);
struct dig_t *digtable = &rtlpriv->dm_digtable; struct dig_t *dig = &rtlpriv->dm_digtable;
if (rtlpriv->mac80211.act_scanning) if (rtlpriv->mac80211.act_scanning)
return; return;
...@@ -526,17 +526,17 @@ static void _rtl92s_dm_ctrl_initgain_bytwoport(struct ieee80211_hw *hw) ...@@ -526,17 +526,17 @@ static void _rtl92s_dm_ctrl_initgain_bytwoport(struct ieee80211_hw *hw)
/* Decide the current status and if modify initial gain or not */ /* Decide the current status and if modify initial gain or not */
if (rtlpriv->mac80211.link_state >= MAC80211_LINKED || if (rtlpriv->mac80211.link_state >= MAC80211_LINKED ||
rtlpriv->mac80211.opmode == NL80211_IFTYPE_ADHOC) rtlpriv->mac80211.opmode == NL80211_IFTYPE_ADHOC)
digtable->cur_sta_cstate = DIG_STA_CONNECT; dig->cur_sta_cstate = DIG_STA_CONNECT;
else else
digtable->cur_sta_cstate = DIG_STA_DISCONNECT; dig->cur_sta_cstate = DIG_STA_DISCONNECT;
digtable->rssi_val = rtlpriv->dm.undec_sm_pwdb; dig->rssi_val = rtlpriv->dm.undec_sm_pwdb;
/* Change dig mode to rssi */ /* Change dig mode to rssi */
if (digtable->cur_sta_cstate != DIG_STA_DISCONNECT) { if (dig->cur_sta_cstate != DIG_STA_DISCONNECT) {
if (digtable->dig_twoport_algorithm == if (dig->dig_twoport_algorithm ==
DIG_TWO_PORT_ALGO_FALSE_ALARM) { DIG_TWO_PORT_ALGO_FALSE_ALARM) {
digtable->dig_twoport_algorithm = DIG_TWO_PORT_ALGO_RSSI; dig->dig_twoport_algorithm = DIG_TWO_PORT_ALGO_RSSI;
rtl92s_phy_set_fw_cmd(hw, FW_CMD_DIG_MODE_SS); rtl92s_phy_set_fw_cmd(hw, FW_CMD_DIG_MODE_SS);
} }
} }
...@@ -544,7 +544,7 @@ static void _rtl92s_dm_ctrl_initgain_bytwoport(struct ieee80211_hw *hw) ...@@ -544,7 +544,7 @@ static void _rtl92s_dm_ctrl_initgain_bytwoport(struct ieee80211_hw *hw)
_rtl92s_dm_false_alarm_counter_statistics(hw); _rtl92s_dm_false_alarm_counter_statistics(hw);
_rtl92s_dm_initial_gain_sta_beforeconnect(hw); _rtl92s_dm_initial_gain_sta_beforeconnect(hw);
digtable->pre_sta_cstate = digtable->cur_sta_cstate; dig->pre_sta_cstate = dig->cur_sta_cstate;
} }
static void _rtl92s_dm_ctrl_initgain_byrssi(struct ieee80211_hw *hw) static void _rtl92s_dm_ctrl_initgain_byrssi(struct ieee80211_hw *hw)
......
...@@ -1089,8 +1089,9 @@ int rtl92se_hw_init(struct ieee80211_hw *hw) ...@@ -1089,8 +1089,9 @@ int rtl92se_hw_init(struct ieee80211_hw *hw)
return err; return err;
} }
void rtl92se_set_mac_addr(struct rtl_io *io, const u8 * addr) void rtl92se_set_mac_addr(struct rtl_io *io, const u8 *addr)
{ {
/* This is a stub. */
} }
void rtl92se_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid) void rtl92se_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid)
......
...@@ -54,7 +54,7 @@ void rtl92se_disable_interrupt(struct ieee80211_hw *hw); ...@@ -54,7 +54,7 @@ void rtl92se_disable_interrupt(struct ieee80211_hw *hw);
int rtl92se_set_network_type(struct ieee80211_hw *hw, int rtl92se_set_network_type(struct ieee80211_hw *hw,
enum nl80211_iftype type); enum nl80211_iftype type);
void rtl92se_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid); void rtl92se_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid);
void rtl92se_set_mac_addr(struct rtl_io *io, const u8 * addr); void rtl92se_set_mac_addr(struct rtl_io *io, const u8 *addr);
void rtl92se_set_qos(struct ieee80211_hw *hw, int aci); void rtl92se_set_qos(struct ieee80211_hw *hw, int aci);
void rtl92se_set_beacon_related_registers(struct ieee80211_hw *hw); void rtl92se_set_beacon_related_registers(struct ieee80211_hw *hw);
void rtl92se_set_beacon_interval(struct ieee80211_hw *hw); void rtl92se_set_beacon_interval(struct ieee80211_hw *hw);
......
...@@ -50,8 +50,7 @@ static void rtl92s_init_aspm_vars(struct ieee80211_hw *hw) ...@@ -50,8 +50,7 @@ static void rtl92s_init_aspm_vars(struct ieee80211_hw *hw)
/*close ASPM for AMD defaultly */ /*close ASPM for AMD defaultly */
rtlpci->const_amdpci_aspm = 0; rtlpci->const_amdpci_aspm = 0;
/* /* ASPM PS mode.
* ASPM PS mode.
* 0 - Disable ASPM, * 0 - Disable ASPM,
* 1 - Enable ASPM without Clock Req, * 1 - Enable ASPM without Clock Req,
* 2 - Enable ASPM with Clock Req, * 2 - Enable ASPM with Clock Req,
...@@ -67,8 +66,7 @@ static void rtl92s_init_aspm_vars(struct ieee80211_hw *hw) ...@@ -67,8 +66,7 @@ static void rtl92s_init_aspm_vars(struct ieee80211_hw *hw)
/*Setting for PCI-E bridge */ /*Setting for PCI-E bridge */
rtlpci->const_hostpci_aspm_setting = 0x02; rtlpci->const_hostpci_aspm_setting = 0x02;
/* /* In Hw/Sw Radio Off situation.
* In Hw/Sw Radio Off situation.
* 0 - Default, * 0 - Default,
* 1 - From ASPM setting without low Mac Pwr, * 1 - From ASPM setting without low Mac Pwr,
* 2 - From ASPM setting with low Mac Pwr, * 2 - From ASPM setting with low Mac Pwr,
...@@ -77,8 +75,7 @@ static void rtl92s_init_aspm_vars(struct ieee80211_hw *hw) ...@@ -77,8 +75,7 @@ static void rtl92s_init_aspm_vars(struct ieee80211_hw *hw)
*/ */
rtlpci->const_hwsw_rfoff_d3 = 2; rtlpci->const_hwsw_rfoff_d3 = 2;
/* /* This setting works for those device with
* This setting works for those device with
* backdoor ASPM setting such as EPHY setting. * backdoor ASPM setting such as EPHY setting.
* 0 - Not support ASPM, * 0 - Not support ASPM,
* 1 - Support ASPM, * 1 - Support ASPM,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment