summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs/os_dep/recv_linux.c
diff options
context:
space:
mode:
authorRoss Schmidt <ross.schm.dev@gmail.com>2020-10-03 20:17:42 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-05 09:59:31 +0200
commitd2e8f201a017fc8be569ca1d6f8f0e0b75495666 (patch)
tree4990f31b8d8ac443be5470348fdb54abd0138e85 /drivers/staging/rtl8723bs/os_dep/recv_linux.c
parentd48603afda8fdca35cf9be7daeb10bf0adbae986 (diff)
downloadlinux-stable-d2e8f201a017fc8be569ca1d6f8f0e0b75495666.tar.gz
linux-stable-d2e8f201a017fc8be569ca1d6f8f0e0b75495666.tar.bz2
linux-stable-d2e8f201a017fc8be569ca1d6f8f0e0b75495666.zip
staging: rtl8723bs: replace RTW_GET_BE16 with get_unaligned_be16
Replace RTW_GET_BE16 macro with get_unlaligned_be16. Signed-off-by: Ross Schmidt <ross.schm.dev@gmail.com> Link: https://lore.kernel.org/r/20201004011743.10750-7-ross.schm.dev@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs/os_dep/recv_linux.c')
-rw-r--r--drivers/staging/rtl8723bs/os_dep/recv_linux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/os_dep/recv_linux.c b/drivers/staging/rtl8723bs/os_dep/recv_linux.c
index b2a1bbb30df6..900ff3a3b014 100644
--- a/drivers/staging/rtl8723bs/os_dep/recv_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/recv_linux.c
@@ -10,6 +10,7 @@
#include <rtw_debug.h>
#include <linux/jiffies.h>
#include <net/cfg80211.h>
+#include <asm/unaligned.h>
void rtw_os_free_recvframe(union recv_frame *precvframe)
{
@@ -69,7 +70,7 @@ _pkt *rtw_os_alloc_msdu_pkt(union recv_frame *prframe, u16 nSubframe_Length, u8
skb_reserve(sub_skb, 12);
skb_put_data(sub_skb, (pdata + ETH_HLEN), nSubframe_Length);
- eth_type = RTW_GET_BE16(&sub_skb->data[6]);
+ eth_type = get_unaligned_be16(&sub_skb->data[6]);
if (sub_skb->len >= 8 &&
((!memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) &&