diff options
author | Himangi Saraogi | 2014-03-05 15:49:07 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-03-08 01:06:47 +0100 |
commit | 1a324441e074cc78f6b230c9e44ccff696ffc42d (patch) | |
tree | 0d0c56d3abdb0215843b0f7219d49f6e40b691ce /drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | |
parent | staging:rtl8712: Fix sparse warning incorrect type in assignment (diff) | |
download | kernel-qcow2-linux-1a324441e074cc78f6b230c9e44ccff696ffc42d.tar.gz kernel-qcow2-linux-1a324441e074cc78f6b230c9e44ccff696ffc42d.tar.xz kernel-qcow2-linux-1a324441e074cc78f6b230c9e44ccff696ffc42d.zip |
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>
Diffstat (limited to 'drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c')
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c index e730ed64c0fe..fc5b84856ede 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c @@ -2200,7 +2200,7 @@ static inline int ieee80211_network_init( network->last_scanned = jiffies; network->time_stamp[0] = le32_to_cpu(beacon->time_stamp[0]); network->time_stamp[1] = le32_to_cpu(beacon->time_stamp[1]); - network->beacon_interval = le32_to_cpu(beacon->beacon_interval); + network->beacon_interval = le16_to_cpu(beacon->beacon_interval); /* Where to pull this? beacon->listen_interval;*/ network->listen_interval = 0x0A; network->rates_len = network->rates_ex_len = 0; |