wireless: libertas: fix unaligned le64 accesses
authorSteven Miao <realmz6@gmail.com>
Wed, 9 Nov 2011 08:30:40 +0000 (16:30 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Nov 2011 19:35:55 +0000 (14:35 -0500)
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>
drivers/net/wireless/libertas/cfg.c

index 4fcd653bddc4a6fafee3da28188d76fe3c279173..a7f1ab28940d3ae6ad8e4fbda26b18087b4c21b4 100644 (file)
@@ -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);