mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 18:09:57 +00:00
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: Ricardo Silva <rjpdasilva@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a371a376de
commit
e038440765
1 changed files with 1 additions and 1 deletions
|
@ -711,7 +711,7 @@ struct hfa384x_hscan_result {
|
|||
#define HFA384x_LINK_ASSOCFAIL ((u16)6)
|
||||
|
||||
struct hfa384x_link_status {
|
||||
u16 linkstatus;
|
||||
__le16 linkstatus;
|
||||
} __packed;
|
||||
|
||||
/*-- Unsolicited Frame, MAC Mgmt: AssociationStatus (--*/
|
||||
|
|
Loading…
Reference in a new issue