staging: rtl8188eu: remove all DBG_88E_LEVEL calls from core/rtw_mlmw_ext.c
authorPhillip Potter <phil@philpotter.co.uk>
Wed, 23 Jun 2021 23:48:55 +0000 (00:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Jun 2021 12:43:06 +0000 (14:43 +0200)
Remove all DBG_88E_LEVEL calls from core/rtw_mlmw_ext.c as this macro is
unnecessary, and these calls are dubious in terms of necessity.
Removing all calls will ultimately allow the removal of the macro
itself.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210623234902.7411-3-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c

index 54b08a2..e237df7 100644 (file)
@@ -2190,7 +2190,6 @@ static void start_clnt_auth(struct adapter *padapter)
        /*      For the Win8 P2P connection, it will be hard to have a successful connection if this Wi-Fi doesn't connect to it. */
        issue_deauth(padapter, (&pmlmeinfo->network)->MacAddress, WLAN_REASON_DEAUTH_LEAVING);
 
-       DBG_88E_LEVEL(_drv_info_, "start auth\n");
        issue_auth(padapter, NULL, 0);
 
        set_link_timer(pmlmeext, REAUTH_TO);
@@ -2481,7 +2480,6 @@ static unsigned int OnBeacon(struct adapter *padapter,
                        if (psta) {
                                ret = rtw_check_bcn_info(padapter, pframe, len);
                                if (!ret) {
-                                       DBG_88E_LEVEL(_drv_info_, "ap has changed, disconnect now\n ");
                                        receive_disconnect(padapter, pmlmeinfo->network.MacAddress, 65535);
                                        return _SUCCESS;
                                }
@@ -2738,7 +2736,6 @@ static unsigned int OnAuthClient(struct adapter *padapter,
        }
 
        if (go2asoc) {
-               DBG_88E_LEVEL(_drv_info_, "auth success, start assoc\n");
                start_clnt_assoc(padapter);
                return _SUCCESS;
        }
@@ -3248,9 +3245,6 @@ static unsigned int OnDeAuth(struct adapter *padapter,
                struct sta_info *psta;
                struct sta_priv *pstapriv = &padapter->stapriv;
 
-               DBG_88E_LEVEL(_drv_always_, "ap recv deauth reason code(%d) sta:%pM\n",
-                             reason, GetAddr2Ptr(pframe));
-
                psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe));
                if (psta) {
                        u8 updated = 0;
@@ -3269,9 +3263,6 @@ static unsigned int OnDeAuth(struct adapter *padapter,
                return _SUCCESS;
        }
 #endif
-       DBG_88E_LEVEL(_drv_always_, "sta recv deauth reason code(%d) sta:%pM\n",
-                     reason, GetAddr3Ptr(pframe));
-
        receive_disconnect(padapter, GetAddr3Ptr(pframe), reason);
 
        pmlmepriv->LinkDetectInfo.bBusyTraffic = false;
@@ -3299,9 +3290,6 @@ static unsigned int OnDisassoc(struct adapter *padapter,
                struct sta_info *psta;
                struct sta_priv *pstapriv = &padapter->stapriv;
 
-               DBG_88E_LEVEL(_drv_always_, "ap recv disassoc reason code(%d) sta:%pM\n",
-                             reason, GetAddr2Ptr(pframe));
-
                psta = rtw_get_stainfo(pstapriv, GetAddr2Ptr(pframe));
                if (psta) {
                        u8 updated = 0;
@@ -3320,9 +3308,6 @@ static unsigned int OnDisassoc(struct adapter *padapter,
                return _SUCCESS;
        }
 #endif
-       DBG_88E_LEVEL(_drv_always_, "ap recv disassoc reason code(%d) sta:%pM\n",
-                     reason, GetAddr3Ptr(pframe));
-
        receive_disconnect(padapter, GetAddr3Ptr(pframe), reason);
 
        pmlmepriv->LinkDetectInfo.bBusyTraffic = false;
@@ -4461,8 +4446,6 @@ void linked_status_chk(struct adapter *padapter)
                        if (rx_chk == _FAIL) {
                                pmlmeext->retry++;
                                if (pmlmeext->retry > rx_chk_limit) {
-                                       DBG_88E_LEVEL(_drv_always_, FUNC_ADPT_FMT" disconnect or roaming\n",
-                                                     FUNC_ADPT_ARG(padapter));
                                        receive_disconnect(padapter, pmlmeinfo->network.MacAddress,
                                                           WLAN_REASON_EXPIRATION_CHK);
                                        return;
@@ -4976,8 +4959,6 @@ u8 setkey_hdl(struct adapter *padapter, u8 *pbuf)
        /* write cam */
        ctrl = BIT(15) | ((pparm->algorithm) << 2) | pparm->keyid;
 
-       DBG_88E_LEVEL(_drv_info_, "set group key to hw: alg:%d(WEP40-1 WEP104-5 TKIP-2 AES-4) "
-                       "keyid:%d\n", pparm->algorithm, pparm->keyid);
        write_cam(padapter, pparm->keyid, ctrl, null_sta, pparm->key);
 
        return H2C_SUCCESS;
@@ -5006,8 +4987,6 @@ u8 set_stakey_hdl(struct adapter *padapter, u8 *pbuf)
 
        cam_id = 4;
 
-       DBG_88E_LEVEL(_drv_info_, "set pairwise key to hw: alg:%d(WEP40-1 WEP104-5 TKIP-2 AES-4) camid:%d\n",
-                     pparm->algorithm, cam_id);
        if ((pmlmeinfo->state & 0x03) == WIFI_FW_AP_STATE) {
                struct sta_info *psta;
                struct sta_priv *pstapriv = &padapter->stapriv;