Staging: wlan-ng: hfa384x.h: fixed sparse warning
authorVitali Liaukovich <vitali.liaukovich@gmail.com>
Mon, 10 Jul 2017 18:31:14 +0000 (21:31 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jul 2017 06:57:59 +0000 (08:57 +0200)
Fields of hfa384x_commsquality were used as __le16 but defined as u16.
Type is changed to __le16.

Signed-off-by: Vitali Liaukovich <vitali.liaukovich@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/hfa384x.h

index 018db2299d0cc5c8548716ccc8b6c6f835385518..f28b05731e88072b8f56243999b1839767391233 100644 (file)
@@ -445,9 +445,9 @@ struct hfa384x_downloadbuffer {
 
 /*-- Information Record: commsquality --*/
 struct hfa384x_commsquality {
-       u16 cq_curr_bss;
-       u16 asl_curr_bss;
-       u16 anl_curr_fc;
+       __le16 cq_curr_bss;
+       __le16 asl_curr_bss;
+       __le16 anl_curr_fc;
 } __packed;
 
 /*-- Information Record: dmbcommsquality --*/