rtlwifi: rtl8192c: rtl8192de: Fix typo in cursta_connectctate
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 31 Aug 2012 20:38:59 +0000 (15:38 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 7 Sep 2012 19:05:57 +0000 (15:05 -0400)
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c
drivers/net/wireless/rtlwifi/rtl8192de/dm.c
drivers/net/wireless/rtlwifi/wifi.h

index a45afda8259c1fbf4f550b08d9af6904932e3675..2fd3b4950404c767e731896661c4a17932ac67b2 100644 (file)
@@ -167,7 +167,7 @@ static void rtl92c_dm_diginit(struct ieee80211_hw *hw)
        dm_digtable->dig_ext_port_stage = DIG_EXT_PORT_STAGE_MAX;
        dm_digtable->cur_igvalue = 0x20;
        dm_digtable->pre_igvalue = 0x0;
-       dm_digtable->cursta_connectctate = DIG_STA_DISCONNECT;
+       dm_digtable->cursta_connectstate = DIG_STA_DISCONNECT;
        dm_digtable->presta_connectstate = DIG_STA_DISCONNECT;
        dm_digtable->curmultista_connectstate = DIG_MULTISTA_DISCONNECT;
        dm_digtable->rssi_lowthresh = DM_DIG_THRESH_LOW;
@@ -190,7 +190,7 @@ static u8 rtl92c_dm_initial_gain_min_pwdb(struct ieee80211_hw *hw)
        long rssi_val_min = 0;
 
        if ((dm_digtable->curmultista_connectstate == DIG_MULTISTA_CONNECT) &&
-           (dm_digtable->cursta_connectctate == DIG_STA_CONNECT)) {
+           (dm_digtable->cursta_connectstate == DIG_STA_CONNECT)) {
                if (rtlpriv->dm.entry_min_undecoratedsmoothed_pwdb != 0)
                        rssi_val_min =
                            (rtlpriv->dm.entry_min_undecoratedsmoothed_pwdb >
@@ -199,8 +199,8 @@ static u8 rtl92c_dm_initial_gain_min_pwdb(struct ieee80211_hw *hw)
                            rtlpriv->dm.entry_min_undecoratedsmoothed_pwdb;
                else
                        rssi_val_min = rtlpriv->dm.undecorated_smoothed_pwdb;
-       } else if (dm_digtable->cursta_connectctate == DIG_STA_CONNECT ||
-                  dm_digtable->cursta_connectctate == DIG_STA_BEFORE_CONNECT) {
+       } else if (dm_digtable->cursta_connectstate == DIG_STA_CONNECT ||
+                  dm_digtable->cursta_connectstate == DIG_STA_BEFORE_CONNECT) {
                rssi_val_min = rtlpriv->dm.undecorated_smoothed_pwdb;
        } else if (dm_digtable->curmultista_connectstate ==
                   DIG_MULTISTA_CONNECT) {
@@ -334,7 +334,7 @@ static void rtl92c_dm_initial_gain_multi_sta(struct ieee80211_hw *hw)
                multi_sta = true;
 
        if (!multi_sta ||
-           dm_digtable->cursta_connectctate != DIG_STA_DISCONNECT) {
+           dm_digtable->cursta_connectstate != DIG_STA_DISCONNECT) {
                initialized = false;
                dm_digtable->dig_ext_port_stage = DIG_EXT_PORT_STAGE_MAX;
                return;
@@ -378,15 +378,15 @@ static void rtl92c_dm_initial_gain_sta(struct ieee80211_hw *hw)
        struct dig_t *dm_digtable = &rtlpriv->dm_digtable;
 
        RT_TRACE(rtlpriv, COMP_DIG, DBG_TRACE,
-                "presta_connectstate = %x, cursta_connectctate = %x\n",
+                "presta_connectstate = %x, cursta_connectstate = %x\n",
                 dm_digtable->presta_connectstate,
-                dm_digtable->cursta_connectctate);
+                dm_digtable->cursta_connectstate);
 
-       if (dm_digtable->presta_connectstate == dm_digtable->cursta_connectctate
-           || dm_digtable->cursta_connectctate == DIG_STA_BEFORE_CONNECT
-           || dm_digtable->cursta_connectctate == DIG_STA_CONNECT) {
+       if (dm_digtable->presta_connectstate == dm_digtable->cursta_connectstate
+           || dm_digtable->cursta_connectstate == DIG_STA_BEFORE_CONNECT
+           || dm_digtable->cursta_connectstate == DIG_STA_CONNECT) {
 
-               if (dm_digtable->cursta_connectctate != DIG_STA_DISCONNECT) {
+               if (dm_digtable->cursta_connectstate != DIG_STA_DISCONNECT) {
                        dm_digtable->rssi_val_min =
                            rtl92c_dm_initial_gain_min_pwdb(hw);
                        rtl92c_dm_ctrl_initgain_by_rssi(hw);
@@ -407,7 +407,7 @@ static void rtl92c_dm_cck_packet_detection_thresh(struct ieee80211_hw *hw)
        struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));
        struct dig_t *dm_digtable = &rtlpriv->dm_digtable;
 
-       if (dm_digtable->cursta_connectctate == DIG_STA_CONNECT) {
+       if (dm_digtable->cursta_connectstate == DIG_STA_CONNECT) {
                dm_digtable->rssi_val_min = rtl92c_dm_initial_gain_min_pwdb(hw);
 
                if (dm_digtable->pre_cck_pd_state == CCK_PD_STAGE_LowRssi) {
@@ -484,15 +484,15 @@ static void rtl92c_dm_ctrl_initgain_by_twoport(struct ieee80211_hw *hw)
                return;
 
        if (mac->link_state >= MAC80211_LINKED)
-               dm_digtable->cursta_connectctate = DIG_STA_CONNECT;
+               dm_digtable->cursta_connectstate = DIG_STA_CONNECT;
        else
-               dm_digtable->cursta_connectctate = DIG_STA_DISCONNECT;
+               dm_digtable->cursta_connectstate = DIG_STA_DISCONNECT;
 
        rtl92c_dm_initial_gain_sta(hw);
        rtl92c_dm_initial_gain_multi_sta(hw);
        rtl92c_dm_cck_packet_detection_thresh(hw);
 
-       dm_digtable->presta_connectstate = dm_digtable->cursta_connectctate;
+       dm_digtable->presta_connectstate = dm_digtable->cursta_connectstate;
 
 }
 
index c0201ed69dd75737b2be2e3c65717bdec90232ae..ed868c396c257d5a5b4a22affcc4c12e401b0d0c 100644 (file)
@@ -164,7 +164,7 @@ static void rtl92d_dm_diginit(struct ieee80211_hw *hw)
        de_digtable->dig_ext_port_stage = DIG_EXT_PORT_STAGE_MAX;
        de_digtable->cur_igvalue = 0x20;
        de_digtable->pre_igvalue = 0x0;
-       de_digtable->cursta_connectctate = DIG_STA_DISCONNECT;
+       de_digtable->cursta_connectstate = DIG_STA_DISCONNECT;
        de_digtable->presta_connectstate = DIG_STA_DISCONNECT;
        de_digtable->curmultista_connectstate = DIG_MULTISTA_DISCONNECT;
        de_digtable->rssi_lowthresh = DM_DIG_THRESH_LOW;
@@ -310,7 +310,7 @@ static void rtl92d_dm_cck_packet_detection_thresh(struct ieee80211_hw *hw)
        struct dig_t *de_digtable = &rtlpriv->dm_digtable;
        unsigned long flag = 0;
 
-       if (de_digtable->cursta_connectctate == DIG_STA_CONNECT) {
+       if (de_digtable->cursta_connectstate == DIG_STA_CONNECT) {
                if (de_digtable->pre_cck_pd_state == CCK_PD_STAGE_LOWRSSI) {
                        if (de_digtable->min_undecorated_pwdb_for_dm <= 25)
                                de_digtable->cur_cck_pd_state =
@@ -342,7 +342,7 @@ static void rtl92d_dm_cck_packet_detection_thresh(struct ieee80211_hw *hw)
                de_digtable->pre_cck_pd_state = de_digtable->cur_cck_pd_state;
        }
        RT_TRACE(rtlpriv, COMP_DIG, DBG_LOUD, "CurSTAConnectState=%s\n",
-                de_digtable->cursta_connectctate == DIG_STA_CONNECT ?
+                de_digtable->cursta_connectstate == DIG_STA_CONNECT ?
                 "DIG_STA_CONNECT " : "DIG_STA_DISCONNECT");
        RT_TRACE(rtlpriv, COMP_DIG, DBG_LOUD, "CCKPDStage=%s\n",
                 de_digtable->cur_cck_pd_state == CCK_PD_STAGE_LOWRSSI ?
@@ -428,9 +428,9 @@ static void rtl92d_dm_dig(struct ieee80211_hw *hw)
        RT_TRACE(rtlpriv, COMP_DIG, DBG_LOUD, "progress\n");
        /* Decide the current status and if modify initial gain or not */
        if (rtlpriv->mac80211.link_state >= MAC80211_LINKED)
-               de_digtable->cursta_connectctate = DIG_STA_CONNECT;
+               de_digtable->cursta_connectstate = DIG_STA_CONNECT;
        else
-               de_digtable->cursta_connectctate = DIG_STA_DISCONNECT;
+               de_digtable->cursta_connectstate = DIG_STA_DISCONNECT;
 
        /* adjust initial gain according to false alarm counter */
        if (falsealm_cnt->cnt_all < DM_DIG_FA_TH0)
index 40153e7bf7020707a66a97e034657385345d0510..a15c112809803c3c25bf685a3cb44bfd4315d3c4 100644 (file)
@@ -1624,7 +1624,7 @@ struct dig_t {
        u8 dig_twoport_algorithm;
        u8 dig_dbgmode;
        u8 dig_slgorithm_switch;
-       u8 cursta_connectctate;
+       u8 cursta_connectstate;
        u8 presta_connectstate;
        u8 curmultista_connectstate;
        char backoff_val;