summaryrefslogtreecommitdiff
path: root/drivers/staging/rtl8192e/rtllib_rx.c
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2011-08-25 11:48:12 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-25 10:05:09 -0700
commit0dd565069b21ae20f4916cf305b64268bb3f9d3f (patch)
tree1d715cabc712363936a110a7a3c4b7db0103e16b /drivers/staging/rtl8192e/rtllib_rx.c
parentac513a88a072b23452ca96a86f18ba8b9c0d85cd (diff)
staging: rtl8192e: Modify time handling
In several places, the driver keeps times (in jiffies) in two 32-bit quantities. In the rtl8192_hw_to_sleep(), there is an error in the calculation of the difference between two 64-bit quantities. Rather than fix that error, I have converted to a single 64-bit number. That makes the code be much cleaner and clearer. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192e/rtllib_rx.c')
-rw-r--r--drivers/staging/rtl8192e/rtllib_rx.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/rtl8192e/rtllib_rx.c b/drivers/staging/rtl8192e/rtllib_rx.c
index 24ad9713d0b6..9606bedf16de 100644
--- a/drivers/staging/rtl8192e/rtllib_rx.c
+++ b/drivers/staging/rtl8192e/rtllib_rx.c
@@ -1867,8 +1867,7 @@ int rtllib_parse_info_param(struct rtllib_device *ieee,
network->dtim_period = info_element->data[1];
if (ieee->state != RTLLIB_LINKED)
break;
- network->last_dtim_sta_time[0] = jiffies;
- network->last_dtim_sta_time[1] = stats->mac_time[1];
+ network->last_dtim_sta_time = jiffies;
network->dtim_data = RTLLIB_DTIM_VALID;
@@ -2466,8 +2465,7 @@ static inline void update_network(struct rtllib_network *dst,
dst->atim_window = src->atim_window;
dst->dtim_period = src->dtim_period;
dst->dtim_data = src->dtim_data;
- dst->last_dtim_sta_time[0] = src->last_dtim_sta_time[0];
- dst->last_dtim_sta_time[1] = src->last_dtim_sta_time[1];
+ dst->last_dtim_sta_time = src->last_dtim_sta_time;
memcpy(&dst->tim, &src->tim, sizeof(struct rtllib_tim_parameters));
dst->bssht.bdSupportHT = src->bssht.bdSupportHT;