summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas
diff options
context:
space:
mode:
authorSteven Miao <realmz6@gmail.com>2011-11-09 09:30:40 +0100
committerJohn W. Linville <linville@tuxdriver.com>2011-11-09 20:35:55 +0100
commitd929bbc63069396e723a180cde9cb71adc9f76ac (patch)
treec9a4bb6d99a4df9583031c2b916ee729f4cdabd9 /drivers/net/wireless/libertas
parentcfg80211: fix bug on regulatory core exit on access to last_request (diff)
downloadlinux-d929bbc63069396e723a180cde9cb71adc9f76ac.tar.xz
linux-d929bbc63069396e723a180cde9cb71adc9f76ac.zip
wireless: libertas: fix unaligned le64 accesses
use get_unaligned_le64() to get timestamp Signed-off-by: Steven Miao <realmz6@gmail.com> Acked-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r--drivers/net/wireless/libertas/cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/libertas/cfg.c b/drivers/net/wireless/libertas/cfg.c
index 4fcd653bddc4..a7f1ab28940d 100644
--- a/drivers/net/wireless/libertas/cfg.c
+++ b/drivers/net/wireless/libertas/cfg.c
@@ -634,7 +634,7 @@ static int lbs_ret_scan(struct lbs_private *priv, unsigned long dummy,
if (channel &&
!(channel->flags & IEEE80211_CHAN_DISABLED))
cfg80211_inform_bss(wiphy, channel,
- bssid, le64_to_cpu(*(__le64 *)tsfdesc),
+ bssid, get_unaligned_le64(tsfdesc),
capa, intvl, ie, ielen,
LBS_SCAN_RSSI_TO_MBM(rssi),
GFP_KERNEL);