diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2014-11-10 18:11:39 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-26 12:41:09 -0800 |
commit | 01ca2e9df902aeb60c246abd54fcea22006bbc42 (patch) | |
tree | d9183d87f3b1872830f2f35787c49d0e08fbf97a /drivers/staging/rtl8723au | |
parent | 641f39a07cee88965c3aedbc4502e82b15b0e058 (diff) | |
download | linux-stable-01ca2e9df902aeb60c246abd54fcea22006bbc42.tar.gz linux-stable-01ca2e9df902aeb60c246abd54fcea22006bbc42.tar.bz2 linux-stable-01ca2e9df902aeb60c246abd54fcea22006bbc42.zip |
staging: rtl8723au: rtw_put_snap23a(): Use put_unaligned to set protocol
Reported-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723au')
-rw-r--r-- | drivers/staging/rtl8723au/core/rtw_xmit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723au/core/rtw_xmit.c b/drivers/staging/rtl8723au/core/rtw_xmit.c index 18a9f34cd94d..f8b124322fc3 100644 --- a/drivers/staging/rtl8723au/core/rtw_xmit.c +++ b/drivers/staging/rtl8723au/core/rtw_xmit.c @@ -1247,7 +1247,7 @@ s32 rtw_put_snap23a(u8 *data, u16 h_proto) ether_addr_copy(data, rfc1042_header); data += ETH_ALEN; - *(__be16 *)data = htons(h_proto); + put_unaligned_be16(h_proto, data); return ETH_ALEN + sizeof(u16); } |