staging: r8188eu: use defines for addba response status
authorMartin Kaiser <martin@kaiser.cx>
Sun, 15 May 2022 15:27:59 +0000 (17:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 15:42:12 +0000 (17:42 +0200)
Replace the numeric values with defines from ieee80211.h.

Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220515152759.335889-1-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c

index b24c6a7..65330ba 100644 (file)
@@ -1504,7 +1504,8 @@ unsigned int OnAction_back(struct adapter *padapter, struct recv_frame *precv_fr
                preorder_ctrl->enable = pmlmeinfo->bAcceptAddbaReq;
 
                issue_action_BA(padapter, mgmt->sa, WLAN_ACTION_ADDBA_RESP,
-                               pmlmeinfo->bAcceptAddbaReq ? 0 : 37);
+                               pmlmeinfo->bAcceptAddbaReq ?
+                                       WLAN_STATUS_SUCCESS : WLAN_STATUS_REQUEST_DECLINED);
                break;
        case WLAN_ACTION_ADDBA_RESP:
                tid = u16_get_bits(le16_to_cpu(mgmt->u.action.u.addba_resp.capab),