提交 0ceb7b15 编写于 作者: J Jes Sorensen 提交者: Greg Kroah-Hartman

staging: rtl8723au: Use enum values for vcs_type

Be consistent in the use of enum VCS_TYPE
Signed-off-by: NJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0f200704
...@@ -829,7 +829,7 @@ void VCS_update23a(struct rtw_adapter *padapter, struct sta_info *psta) ...@@ -829,7 +829,7 @@ void VCS_update23a(struct rtw_adapter *padapter, struct sta_info *psta)
psta->cts2self = 0; psta->cts2self = 0;
break; break;
case 1: /* on */ 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->rtsen = 1;
psta->cts2self = 0; psta->cts2self = 0;
} else { } else {
...@@ -840,7 +840,7 @@ void VCS_update23a(struct rtw_adapter *padapter, struct sta_info *psta) ...@@ -840,7 +840,7 @@ void VCS_update23a(struct rtw_adapter *padapter, struct sta_info *psta)
case 2: /* auto */ case 2: /* auto */
default: default:
if (pmlmeinfo->ERP_enable && pmlmeinfo->ERP_IE & BIT(1)) { if (pmlmeinfo->ERP_enable && pmlmeinfo->ERP_IE & BIT(1)) {
if (pregpriv->vcs_type == 1) { if (pregpriv->vcs_type == RTS_CTS) {
psta->rtsen = 1; psta->rtsen = 1;
psta->cts2self = 0; psta->cts2self = 0;
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册