aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/join.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/mwifiex/join.c')
-rw-r--r--drivers/net/wireless/mwifiex/join.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/join.c b/drivers/net/wireless/mwifiex/join.c
index 23d2d0b9a527..85fca5eb4195 100644
--- a/drivers/net/wireless/mwifiex/join.c
+++ b/drivers/net/wireless/mwifiex/join.c
@@ -100,7 +100,7 @@ mwifiex_cmd_append_tsf_tlv(struct mwifiex_private *priv, u8 **buffer,
100 struct mwifiex_bssdescriptor *bss_desc) 100 struct mwifiex_bssdescriptor *bss_desc)
101{ 101{
102 struct mwifiex_ie_types_tsf_timestamp tsf_tlv; 102 struct mwifiex_ie_types_tsf_timestamp tsf_tlv;
103 long long tsf_val; 103 __le64 tsf_val;
104 104
105 /* Null Checks */ 105 /* Null Checks */
106 if (buffer == NULL) 106 if (buffer == NULL)
@@ -116,6 +116,8 @@ mwifiex_cmd_append_tsf_tlv(struct mwifiex_private *priv, u8 **buffer,
116 memcpy(*buffer, &tsf_tlv, sizeof(tsf_tlv.header)); 116 memcpy(*buffer, &tsf_tlv, sizeof(tsf_tlv.header));
117 *buffer += sizeof(tsf_tlv.header); 117 *buffer += sizeof(tsf_tlv.header);
118 118
119 /* TSF at the time when beacon/probe_response was received */
120 tsf_val = cpu_to_le64(bss_desc->network_tsf);
119 memcpy(*buffer, &tsf_val, sizeof(tsf_val)); 121 memcpy(*buffer, &tsf_val, sizeof(tsf_val));
120 *buffer += sizeof(tsf_val); 122 *buffer += sizeof(tsf_val);
121 123