Commit 01ca2e9d authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723au: rtw_put_snap23a(): Use put_unaligned to set protocol

parent 641f39a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}