staging: rtl8723au: Use enum values for vcs_type
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>
This commit is contained in:
parent
0f20070483
commit
0ceb7b15e8
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue