Commit f474f5e5 authored by Ebru Akagunduz's avatar Ebru Akagunduz Committed by Greg Kroah-Hartman

staging: wlan-ng: Fix incorrect type in assignments

fc variable type was u16 and it has an assignment
from cpu_to_le16() so its type changed as __le16.
This bug found by sparse.
Signed-off-by: default avatarEbru Akagunduz <ebru.akagunduz@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent be40a5e2
...@@ -107,7 +107,7 @@ int skb_ether_to_p80211(wlandevice_t *wlandev, u32 ethconv, ...@@ -107,7 +107,7 @@ int skb_ether_to_p80211(wlandevice_t *wlandev, u32 ethconv,
struct p80211_metawep *p80211_wep) struct p80211_metawep *p80211_wep)
{ {
u16 fc; __le16 fc;
u16 proto; u16 proto;
struct wlan_ethhdr e_hdr; struct wlan_ethhdr e_hdr;
struct wlan_llc *e_llc; struct wlan_llc *e_llc;
......
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
/* Generic 802.11 Header types */ /* Generic 802.11 Header types */
struct p80211_hdr_a3 { struct p80211_hdr_a3 {
u16 fc; __le16 fc;
u16 dur; u16 dur;
u8 a1[ETH_ALEN]; u8 a1[ETH_ALEN];
u8 a2[ETH_ALEN]; u8 a2[ETH_ALEN];
......
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