[PATCH 1/2] staging: wlan-ng: Fix the types of the hfa384x_commsquality members
Christopher H Pezley
chris at pezley.net
Sat Jul 22 17:11:24 UTC 2017
Running sparse revealed that the members of hfa384x_commsquality
were defined as u16, but were actually used as __le16:
drivers/staging/wlan-ng/prism2sta.c:375:46: warning: cast to
restricted __le16
This patch changes the member types to reflect their use.
Signed-off-by: Christopher H Pezley <chris at pezley.net>
---
drivers/staging/wlan-ng/hfa384x.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h
index 018db22..f28b057 100644
--- a/drivers/staging/wlan-ng/hfa384x.h
+++ b/drivers/staging/wlan-ng/hfa384x.h
@@ -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 --*/
--
2.7.4
More information about the devel
mailing list