Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 243697
b: refs/heads/master
c: 2b78ac9
h: refs/heads/master
i:
  243695: f368a0e
v: v3
  • Loading branch information
Juuso Oikarinen authored and John W. Linville committed Mar 28, 2011
1 parent cbb9111 commit 4fd9c7f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 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: bef9bacc4ec7ea6a02876164cd6ccaa4759edce4
refs/heads/master: 2b78ac9bfc7483ba4bda9ad3d10dd4afcf88337c
18 changes: 11 additions & 7 deletions trunk/net/wireless/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ void cfg80211_bss_age(struct cfg80211_registered_device *dev,
}
}

/* must hold dev->bss_lock! */
static void __cfg80211_unlink_bss(struct cfg80211_registered_device *dev,
struct cfg80211_internal_bss *bss)
{
list_del_init(&bss->list);
rb_erase(&bss->rbn, &dev->bss_tree);
kref_put(&bss->ref, bss_release);
}

/* must hold dev->bss_lock! */
void cfg80211_bss_expire(struct cfg80211_registered_device *dev)
{
Expand All @@ -134,9 +143,7 @@ void cfg80211_bss_expire(struct cfg80211_registered_device *dev)
continue;
if (!time_after(jiffies, bss->ts + IEEE80211_SCAN_RESULT_EXPIRE))
continue;
list_del(&bss->list);
rb_erase(&bss->rbn, &dev->bss_tree);
kref_put(&bss->ref, bss_release);
__cfg80211_unlink_bss(dev, bss);
expired = true;
}

Expand Down Expand Up @@ -669,11 +676,8 @@ void cfg80211_unlink_bss(struct wiphy *wiphy, struct cfg80211_bss *pub)

spin_lock_bh(&dev->bss_lock);
if (!list_empty(&bss->list)) {
list_del_init(&bss->list);
__cfg80211_unlink_bss(dev, bss);
dev->bss_generation++;
rb_erase(&bss->rbn, &dev->bss_tree);

kref_put(&bss->ref, bss_release);
}
spin_unlock_bh(&dev->bss_lock);
}
Expand Down

0 comments on commit 4fd9c7f

Please sign in to comment.