Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 89910
b: refs/heads/master
c: ab46623
h: refs/heads/master
v: v3
  • Loading branch information
S.Çağlar Onur authored and John W. Linville committed Feb 29, 2008
1 parent 82e051b commit 4b5d044
Show file tree
Hide file tree
Showing 3 changed files with 5 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: ac2bf3242e1a329543be50b5c9df4f0119ee188c
refs/heads/master: ab46623ec1f4ea022b861333ce959f0b8f9eb70e
3 changes: 2 additions & 1 deletion trunk/net/mac80211/rc80211_simple.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* published by the Free Software Foundation.
*/

#include <linux/jiffies.h>
#include <linux/init.h>
#include <linux/netdevice.h>
#include <linux/types.h>
Expand Down Expand Up @@ -175,7 +176,7 @@ static void rate_control_simple_tx_status(void *priv, struct net_device *dev,
rate_control_rate_dec(local, sta);
}

if (srctrl->avg_rate_update + 60 * HZ < jiffies) {
if (time_after(jiffies, srctrl->avg_rate_update + 60 * HZ)) {
srctrl->avg_rate_update = jiffies;
if (srctrl->tx_avg_rate_num > 0) {
#ifdef CONFIG_MAC80211_VERBOSE_DEBUG
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/mac80211/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* published by the Free Software Foundation.
*/

#include <linux/jiffies.h>
#include <linux/kernel.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
Expand Down Expand Up @@ -767,7 +768,7 @@ ieee80211_reassemble_find(struct ieee80211_sub_if_data *sdata,
compare_ether_addr(hdr->addr2, f_hdr->addr2) != 0)
continue;

if (entry->first_frag_time + 2 * HZ < jiffies) {
if (time_after(jiffies, entry->first_frag_time + 2 * HZ)) {
__skb_queue_purge(&entry->skb_list);
continue;
}
Expand Down

0 comments on commit 4b5d044

Please sign in to comment.