From: Jes Sorensen <jes.soren...@redhat.com>

Be consistent in the use of enum VCS_TYPE

Signed-off-by: Jes Sorensen <jes.soren...@redhat.com>
---
 drivers/staging/rtl8723au/core/rtw_wlan_util.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8723au/core/rtw_wlan_util.c 
b/drivers/staging/rtl8723au/core/rtw_wlan_util.c
index 5c4006a..3ec5ef2f 100644
--- a/drivers/staging/rtl8723au/core/rtw_wlan_util.c
+++ b/drivers/staging/rtl8723au/core/rtw_wlan_util.c
@@ -833,7 +833,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 {
@@ -844,7 +844,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 {
-- 
1.9.3

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to