From: Martin Kaiser Date: Thu, 2 Jun 2022 19:37:17 +0000 (+0200) Subject: staging: r8188eu: use mgmt to set the addba resp status X-Git-Tag: v6.6.17~6907^2~148 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e2643fd46cc34a26a8d9eab76d179d5416e03344;p=platform%2Fkernel%2Flinux-rpi.git staging: r8188eu: use mgmt to set the addba resp status Use the mgmt struct to set the addba response status. The caller passes the status code in host endianness, we have to convert it to little endian. Tested-by: Pavel Skripkin Signed-off-by: Martin Kaiser Link: https://lore.kernel.org/r/20220602193726.280922-3-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/r8188eu/core/rtw_mlme_ext.c b/drivers/staging/r8188eu/core/rtw_mlme_ext.c index 5b03191..51f0585 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -5444,7 +5444,8 @@ void issue_action_BA(struct adapter *padapter, unsigned char *raddr, unsigned ch pattrib->pktlen++; mgmt->u.action.u.addba_resp.dialog_token = pmlmeinfo->ADDBA_req.dialog_token; pattrib->pktlen++; - pframe = rtw_set_fixed_ie(pframe, 2, (unsigned char *)&status, &pattrib->pktlen); + mgmt->u.action.u.addba_resp.status = cpu_to_le16(status); + pattrib->pktlen += 2; BA_para_set = le16_to_cpu(pmlmeinfo->ADDBA_req.BA_para_set) & 0x3f; BA_para_set |= 0x1000; /* 64 buffer size */