[PATCH 0/4] staging: wlan-ng: prism2sta: Fix sparse warnings (endian)

Ricardo Silva rjpdasilva at gmail.com
Tue Jul 18 13:09:14 UTC 2017


This series intends to fix all sparse warnings left in 'prism2sta.c' from the
'wlan-ng' staging driver.

Patch 1 fixes the fields declarations of 'struct hfa384x_comm_tallies_{16.32}'
and the way they are accessed from 'prism2sta_inf_tallies()'.

Patches 2 and 3 each fix a different struct field declaration to have endianess
indication.

Patch 4 fixes the remaining endian related sparse warnings in function
'prism2sta_inf_chinforesults()' by using 'in situ' conversions, required due to
the same structures being shared for storing both the little-endian values and
the converted ones.

With this series, no sparse reported issues are left in the 'wlan-ng' driver.

Ricardo Silva (4):
  staging: wlan-ng: prism2sta: Use endian types in 'comm_tallies_{16,32}' structs fields
  staging: wlan-ng: prism2sta: Use endian type in 'hfa384x_link_status' struct
  staging: wlan-ng: prism2sta: Use endian type in 'hfa384x_ps_user_count' struct
  staging: wlan-ng: prism2sta: Use 'in situ' endian conversions in 'prism2sta_inf_chinforesults()'

 drivers/staging/wlan-ng/hfa384x.h   | 88 ++++++++++++++++++-------------------
 drivers/staging/wlan-ng/prism2sta.c | 25 +++++++----
 2 files changed, 60 insertions(+), 53 deletions(-)

-- 
2.13.2



More information about the devel mailing list