projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58ebacc
)
wireless: libertas: fix unaligned le64 accesses
author
Steven Miao
<realmz6@gmail.com>
Wed, 9 Nov 2011 08:30:40 +0000
(16:30 +0800)
committer
John 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/libertas/cfg.c
b/drivers/net/wireless/libertas/cfg.c
index 4fcd653bddc4a6fafee3da28188d76fe3c279173..a7f1ab28940d3ae6ad8e4fbda26b18087b4c21b4 100644
(file)
--- 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);