Staging:rtl8192:ieee80211: Fix sparse warning cast to restricted __le32
authorHimangi Saraogi <himangi774@gmail.com>
Wed, 5 Mar 2014 14:49:07 +0000 (20:19 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Mar 2014 00:06:47 +0000 (16:06 -0800)
commit1a324441e074cc78f6b230c9e44ccff696ffc42d
tree0d0c56d3abdb0215843b0f7219d49f6e40b691ce
parent0f11b53dbc69ffd2d80548f6c32e44adb697401a
Staging:rtl8192:ieee80211: Fix sparse warning cast to restricted __le32

This patch fixes the following sparse warnings in ieee80211_rx.c:
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:2201:34: warning: cast
to restricted __le32
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:2202:34: warning: cast
to restricted __le32
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c:2203:36: warning: cast
to restricted __le32

by changing the annotation in the structure header file for struct
ieee80211_probe_response for time_stamp and altering the cast
for beacon_interval to le16.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Reviewed-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211.h
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c