Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362035
b: refs/heads/master
c: 1345ee6
h: refs/heads/master
i:
  362033: e831579
  362031: f8a660c
v: v3
  • Loading branch information
Johannes Berg authored and Johannes Berg committed Mar 7, 2013
1 parent 2231386 commit abf1cb7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 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: 021fcdc13acbab78589325ae2db0b384b4ee7222
refs/heads/master: 1345ee6a6d90813f972379fad8b75f17026fc8b2
16 changes: 11 additions & 5 deletions trunk/net/wireless/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,11 +698,6 @@ cfg80211_bss_update(struct cfg80211_registered_device *dev,
found = rb_find_bss(dev, tmp, BSS_CMP_REGULAR);

if (found) {
found->pub.beacon_interval = tmp->pub.beacon_interval;
found->pub.signal = tmp->pub.signal;
found->pub.capability = tmp->pub.capability;
found->ts = tmp->ts;

/* Update IEs */
if (rcu_access_pointer(tmp->pub.proberesp_ies)) {
const struct cfg80211_bss_ies *old;
Expand All @@ -723,6 +718,8 @@ cfg80211_bss_update(struct cfg80211_registered_device *dev,

if (found->pub.hidden_beacon_bss &&
!list_empty(&found->hidden_list)) {
const struct cfg80211_bss_ies *f;

/*
* The found BSS struct is one of the probe
* response members of a group, but we're
Expand All @@ -732,6 +729,10 @@ cfg80211_bss_update(struct cfg80211_registered_device *dev,
* SSID to showing it, which is confusing so
* drop this information.
*/

f = rcu_access_pointer(tmp->pub.beacon_ies);
kfree_rcu((struct cfg80211_bss_ies *)f,
rcu_head);
goto drop;
}

Expand Down Expand Up @@ -761,6 +762,11 @@ cfg80211_bss_update(struct cfg80211_registered_device *dev,
kfree_rcu((struct cfg80211_bss_ies *)old,
rcu_head);
}

found->pub.beacon_interval = tmp->pub.beacon_interval;
found->pub.signal = tmp->pub.signal;
found->pub.capability = tmp->pub.capability;
found->ts = tmp->ts;
} else {
struct cfg80211_internal_bss *new;
struct cfg80211_internal_bss *hidden;
Expand Down

0 comments on commit abf1cb7

Please sign in to comment.