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:
Jes Sorensen 2014-11-10 18:11:39 -05:00 committed by Greg Kroah-Hartman
parent 641f39a07c
commit 01ca2e9df9
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}