staging: rtl8723au: Use enum values for vcs_type
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 10 Oct 2014 19:41:28 +0000 (21:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Oct 2014 02:30:14 +0000 (10:30 +0800)
Be consistent in the use of enum VCS_TYPE

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_wlan_util.c

index 0126a3fa7fc9caa9b60f3f9d11254da9c96d94e1..c0325c96d616dae3d7df911439386e54c0b719d9 100644 (file)
@@ -829,7 +829,7 @@ void VCS_update23a(struct rtw_adapter *padapter, struct sta_info *psta)
                psta->cts2self = 0;
                break;
        case 1: /* on */
-               if (pregpriv->vcs_type == 1) { /* 1:RTS/CTS 2:CTS to self */
+               if (pregpriv->vcs_type == RTS_CTS) {
                        psta->rtsen = 1;
                        psta->cts2self = 0;
                } else {
@@ -840,7 +840,7 @@ void VCS_update23a(struct rtw_adapter *padapter, struct sta_info *psta)
        case 2: /* auto */
        default:
                if (pmlmeinfo->ERP_enable && pmlmeinfo->ERP_IE & BIT(1)) {
-                       if (pregpriv->vcs_type == 1) {
+                       if (pregpriv->vcs_type == RTS_CTS) {
                                psta->rtsen = 1;
                                psta->cts2self = 0;
                        } else {