From: Martin Kaiser Date: Tue, 24 May 2022 09:00:28 +0000 (+0200) Subject: staging: r8188eu: use mgmt to set start sequence number X-Git-Tag: v6.6.17~6907^2~167 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56580e22fecb7cbe11f9debb8de07662a847d444;p=platform%2Fkernel%2Flinux-rpi.git staging: r8188eu: use mgmt to set start sequence number Use the mgmt structure in issue_action_BA to set the start sequence number. Signed-off-by: Martin Kaiser Link: https://lore.kernel.org/r/20220524090029.242584-12-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 823c548..408aa0a 100644 --- a/drivers/staging/r8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/r8188eu/core/rtw_mlme_ext.c @@ -5438,8 +5438,8 @@ void issue_action_BA(struct adapter *padapter, unsigned char *raddr, unsigned ch BA_starting_seqctrl = start_seq << 4; } - le_tmp = cpu_to_le16(BA_starting_seqctrl); - pframe = rtw_set_fixed_ie(pframe, 2, (unsigned char *)&le_tmp, &pattrib->pktlen); + mgmt->u.action.u.addba_req.start_seq_num = cpu_to_le16(BA_starting_seqctrl); + pattrib->pktlen += 2; break; case WLAN_ACTION_ADDBA_RESP: mgmt->u.action.u.addba_resp.action_code = WLAN_ACTION_ADDBA_RESP;