OSDN Git Service

staging/rtl8192u: add endianness conversions
authorColin Vidal <colin@cvidal.org>
Thu, 26 Jan 2017 19:22:00 +0000 (20:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jan 2017 08:42:32 +0000 (09:42 +0100)
commite7b56b14b87964c8caeb9e9ee7e823f578c0dc1e
tree7ed6f3c7565346c771947c7cb174118842522fc3
parent3e99c2d2405fd10765c8d154961f5ae6bfebf890
staging/rtl8192u: add endianness conversions

Fields frag_size and playload_size of struct ieee80211_txb are encoded
as short little-endian. This patch adds conversions to / from cpu byte
order when copy / write these values in variables of architecture
independent byte order. It also avoid a sparse type warning.

Signed-off-by: Colin Vidal <colin@cvidal.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_tx.c