Commit ecf2d4aa authored by Aapo Vienamo's avatar Aapo Vienamo Committed by Greg Kroah-Hartman

staging: wlan-ng: add byte order annotation to struct p80211_caphdr

Fixes the following sparse warnings around line 3514 in hfa384x_usb.c:

warning: incorrect type in assignment (different base types)
   expected unsigned int [unsigned] [usertype] version
   got restricted __be32 [usertype] <noident>
Signed-off-by: default avatarAapo Vienamo <aapo.vienamo@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8d2aa8bf
...@@ -101,20 +101,20 @@ void p80211skb_rxmeta_detach(struct sk_buff *skb); ...@@ -101,20 +101,20 @@ void p80211skb_rxmeta_detach(struct sk_buff *skb);
* Frame capture header. (See doc/capturefrm.txt) * Frame capture header. (See doc/capturefrm.txt)
*/ */
struct p80211_caphdr { struct p80211_caphdr {
u32 version; __be32 version;
u32 length; __be32 length;
u64 mactime; __be64 mactime;
u64 hosttime; __be64 hosttime;
u32 phytype; __be32 phytype;
u32 channel; __be32 channel;
u32 datarate; __be32 datarate;
u32 antenna; __be32 antenna;
u32 priority; __be32 priority;
u32 ssi_type; __be32 ssi_type;
s32 ssi_signal; __be32 ssi_signal;
s32 ssi_noise; __be32 ssi_noise;
u32 preamble; __be32 preamble;
u32 encoding; __be32 encoding;
}; };
/* buffer free method pointer type */ /* buffer free method pointer type */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment