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>
This commit is contained in:
parent
641f39a07c
commit
01ca2e9df9
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue