diff options
author | Aakash Hemadri <aakashhemadri123@gmail.com> | 2021-08-28 09:59:49 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-08-28 08:33:09 +0200 |
commit | 65bbdabe2a27a4f46387a3b6976d2355d67f9706 (patch) | |
tree | 9815d8fb0f65c3ab3809c94d3bbf142362fbe2b2 /drivers/staging | |
parent | f6bc526accf861728d36b12fbc25ac94cd057fc9 (diff) |
staging: wlan-ng: fix invalid assignment warning
p80211_hdr->frame_control is u16, change to __le16
to satisfy sparse warning:
wlan-ng/prism2sta.c:253:43: warning: invalid assignment: |=
wlan-ng/prism2sta.c:253:43: left side has type unsigned short
wlan-ng/prism2sta.c:253:43: right side has type restricted __le16
Fixes: 6277fbfdd29c ("staging: wlan-ng: Remove pointless a3/a4 union")
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Aakash Hemadri <aakashhemadri123@gmail.com>
Link: https://lore.kernel.org/r/20210828042949.2276341-1-aakashhemadri123@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/wlan-ng/p80211hdr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wlan-ng/p80211hdr.h b/drivers/staging/wlan-ng/p80211hdr.h index dd1fb99bf340..5871a55e4a61 100644 --- a/drivers/staging/wlan-ng/p80211hdr.h +++ b/drivers/staging/wlan-ng/p80211hdr.h @@ -149,7 +149,7 @@ /* Generic 802.11 Header types */ struct p80211_hdr { - u16 frame_control; + __le16 frame_control; u16 duration_id; u8 address1[ETH_ALEN]; u8 address2[ETH_ALEN]; |