staging: r8188eu: calculate the delba length
authorMartin Kaiser <martin@kaiser.cx>
Thu, 2 Jun 2022 19:37:24 +0000 (21:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jun 2022 06:08:35 +0000 (08:08 +0200)
commitd8f2cff63249fdf7f2cf78e70344613db1fc4e53
treeb90f61f8084654d7e89b921cba05b183dc28b49d
parent3d7deed4ec52d2018f81d0e798966b551c7d1487
staging: r8188eu: calculate the delba length

Use offsetofend to calculate the length of the delba message.

We are now calculating all message lengths based on the offset of their
last field. All intermediate updates of pattrib->pktlen can be removed.

Tested-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220602193726.280922-10-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme_ext.c