staging:rtl8187se:ieee80211: Fix sparse warning of cast to restricted __le16
authorHimangi Saraogi <himangi774@gmail.com>
Wed, 12 Mar 2014 18:37:16 +0000 (00:07 +0530)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Fri, 14 Mar 2014 00:28:31 +0000 (17:28 -0700)
This patch fixes the following sparse warnings:
drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_tkip.c:496:17: warning: cast to restricted __le16
drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_tkip.c:540:12: warning: cast to restricted __le16
drivers/staging/rtl8187se/ieee80211/ieee80211_crypt_tkip.c:586:12: warning: cast to restricted __le16

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Reviewed-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/rtl8187se/ieee80211/ieee80211.h

index e4c1c379de6852b7db4f30069960f10db960b70e..d1763b7b8f271ff3f3b5766f74000ec87d61d291 100644 (file)
@@ -482,7 +482,7 @@ struct ieee80211_header_data {
 };
 
 struct ieee80211_hdr_4addr {
-       u16 frame_ctl;
+       __le16 frame_ctl;
        u16 duration_id;
        u8 addr1[ETH_ALEN];
        u8 addr2[ETH_ALEN];