Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89911
b: refs/heads/master
c: 6e33e30
h: refs/heads/master
i:
  89909: 82e051b
  89907: 8bb956b
  89903: 3cb3961
v: v3
  • Loading branch information
S.Çağlar Onur authored and John W. Linville committed Feb 29, 2008
1 parent 4b5d044 commit 62c2063
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ab46623ec1f4ea022b861333ce959f0b8f9eb70e
refs/heads/master: 6e33e30d7ae11d527ad1d65ec09a65467d6db1b2
5 changes: 3 additions & 2 deletions trunk/drivers/net/wireless/atmel.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
#include <linux/device.h>
#include <linux/moduleparam.h>
#include <linux/firmware.h>
#include <linux/jiffies.h>
#include <net/ieee80211.h>
#include "atmel.h"

Expand Down Expand Up @@ -516,7 +517,7 @@ struct atmel_private {
SITE_SURVEY_IN_PROGRESS,
SITE_SURVEY_COMPLETED
} site_survey_state;
time_t last_survey;
unsigned long last_survey;

int station_was_associated, station_is_associated;
int fast_scan;
Expand Down Expand Up @@ -2283,7 +2284,7 @@ static int atmel_set_scan(struct net_device *dev,
return -EAGAIN;

/* Timeout old surveys. */
if ((jiffies - priv->last_survey) > (20 * HZ))
if (time_after(jiffies, priv->last_survey + 20 * HZ))
priv->site_survey_state = SITE_SURVEY_IDLE;
priv->last_survey = jiffies;

Expand Down

0 comments on commit 62c2063

Please sign in to comment.