Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0384407 authored by Ricardo Silva's avatar Ricardo Silva Committed by Greg Kroah-Hartman
Browse files

staging: wlan-ng: hfa384x.h: Use endian type in 'hfa384x_link_status' struct



The 'linkstatus' field from struct 'hfa384x_link_status' represents a
16-bit little-endian integer, so declare it as such to avoid the
following sparse warning when accessing it through the 'le16_to_cpu()'
function:

 prism2sta.c:1450:31: warning: cast to restricted __le16

Signed-off-by: default avatarRicardo Silva <rjpdasilva@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a371a376
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -711,7 +711,7 @@ struct hfa384x_hscan_result {
#define HFA384x_LINK_ASSOCFAIL		((u16)6)
#define HFA384x_LINK_ASSOCFAIL		((u16)6)


struct hfa384x_link_status {
struct hfa384x_link_status {
	u16 linkstatus;
	__le16 linkstatus;
} __packed;
} __packed;


/*--  Unsolicited Frame, MAC Mgmt: AssociationStatus (--*/
/*--  Unsolicited Frame, MAC Mgmt: AssociationStatus (--*/