summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng/prism2mgmt.c
diff options
context:
space:
mode:
authorSuniel Mahesh <sunil.m@techveda.org>2017-06-16 11:01:45 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-06-23 19:37:38 +0200
commit18cd9021ea035db85519391dbc429a5b1d0dd25b (patch)
treee94e9a40fcc63e5d2877fb6739b689064652d98c /drivers/staging/wlan-ng/prism2mgmt.c
parent428715bac69b98253e33c0034c829114481d5b32 (diff)
downloadlinux-18cd9021ea035db85519391dbc429a5b1d0dd25b.tar.gz
linux-18cd9021ea035db85519391dbc429a5b1d0dd25b.tar.bz2
linux-18cd9021ea035db85519391dbc429a5b1d0dd25b.zip
staging: wlan-ng: Fix struct definition's and variable type
le16_to_cpu() accepts argument of type __le16 and cpu_to_le16() returns an argument of type __le16. This patch fixes: (a) the type of the variable that end's up getting return from cpu_to_le16(). (b) the member types of struct hfa384x_host_scan_request_data, struct hfa384x_bytestr32 and struct hfa384x_hscan_result_sub. The following type mismatch warnings reported by sparse have been fixed: warning: incorrect type in assignment (different base types) warning: cast to restricted __le16 Signed-off-by: Suniel Mahesh <sunil.m@techveda.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng/prism2mgmt.c')
-rw-r--r--drivers/staging/wlan-ng/prism2mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c
index f4d6e4849987..c4aa9e7e7003 100644
--- a/drivers/staging/wlan-ng/prism2mgmt.c
+++ b/drivers/staging/wlan-ng/prism2mgmt.c
@@ -213,7 +213,7 @@ int prism2mgmt_scan(struct wlandevice *wlandev, void *msgp)
goto exit;
}
if (word == HFA384x_PORTSTATUS_DISABLED) {
- u16 wordbuf[17];
+ __le16 wordbuf[17];
result = hfa384x_drvr_setconfig16(hw,
HFA384x_RID_CNFROAMINGMODE,