Skip to content

Commit 65bbdab

Browse files
aakashhemadrigregkh
authored andcommitted
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: 6277fbf ("staging: wlan-ng: Remove pointless a3/a4 union") Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Aakash Hemadri <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f6bc526 commit 65bbdab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/wlan-ng/p80211hdr.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
/* Generic 802.11 Header types */
150150

151151
struct p80211_hdr {
152-
u16 frame_control;
152+
__le16 frame_control;
153153
u16 duration_id;
154154
u8 address1[ETH_ALEN];
155155
u8 address2[ETH_ALEN];

0 commit comments

Comments
 (0)