]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: use ieee80211 define for fragment number
authorMartin Kaiser <martin@kaiser.cx>
Sun, 27 Mar 2022 18:09:44 +0000 (20:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 05:33:47 +0000 (07:33 +0200)
commit1dc88d91837e155d0bcc9a71bfa1cf781b6813ac
tree4b9287bd938707bba7ec008e26291e492b91b70f
parent3b735105956deb1e35113c164defd465e43aabc5
staging: r8188eu: use ieee80211 define for fragment number

Use the IEEE80211_SCTL_FRAG define to extract the fragment number from an
incoming frame.

pattrib->frag_num must be in host endianness, we have to convert
hdr->seq_ctrl, this field is little-endian.

Remove the local GetFragNum macro, it is not used any more.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220327180944.712545-10-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_recv.c
drivers/staging/r8188eu/include/wifi.h