[PATCH] staging: wlan-ng: Fix incorrect type in assignment
Kamal Heib
kamalheib1 at gmail.com
Sat Jun 17 16:02:46 UTC 2017
Fix the following sparse warnings:
prism2mgmt.c:188:25: warning: incorrect type in assignment (different base types)
prism2mgmt.c:188:25: expected unsigned short [unsigned] [addressable] [usertype] tx_rate
prism2mgmt.c:188:25: got restricted __le16 [usertype] <noident>
prism2mgmt.c:200:30: warning: incorrect type in assignment (different base types)
prism2mgmt.c:200:30: expected unsigned short [unsigned] [addressable] [usertype] channel_list
prism2mgmt.c:200:30: got restricted __le16 [usertype] <noident>
Cc: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Signed-off-by: Kamal Heib <kamalheib1 at gmail.com>
---
drivers/staging/wlan-ng/hfa384x.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h
index 60110b4b49f8..10f4e0ee81c8 100644
--- a/drivers/staging/wlan-ng/hfa384x.h
+++ b/drivers/staging/wlan-ng/hfa384x.h
@@ -399,8 +399,8 @@ struct hfa384x_caplevel {
/*-- Configuration Record: HostScanRequest (data portion only) --*/
struct hfa384x_host_scan_request_data {
- u16 channel_list;
- u16 tx_rate;
+ __le16 channel_list;
+ __le16 tx_rate;
struct hfa384x_bytestr32 ssid;
} __packed;
--
2.9.4
More information about the devel
mailing list