Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255871
b: refs/heads/master
c: 9720bb3
h: refs/heads/master
i:
  255869: 14f259f
  255867: 7c4cc60
  255863: 6ccacb1
  255855: 7d9a93c
  255839: 54cdac6
  255807: 09d5dcc
  255743: 7796555
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Jun 22, 2011
1 parent 13a3d8d commit 59b42c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: a5ffddb70c5cab29fa00e2fdf12217b64b940796
refs/heads/master: 9720bb3ab0b80659c63ed337eab66104a4156db0
12 changes: 8 additions & 4 deletions trunk/net/wireless/nl80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -3620,7 +3620,8 @@ static int nl80211_stop_sched_scan(struct sk_buff *skb,
return __cfg80211_stop_sched_scan(rdev, false);
}

static int nl80211_send_bss(struct sk_buff *msg, u32 pid, u32 seq, int flags,
static int nl80211_send_bss(struct sk_buff *msg, struct netlink_callback *cb,
u32 seq, int flags,
struct cfg80211_registered_device *rdev,
struct wireless_dev *wdev,
struct cfg80211_internal_bss *intbss)
Expand All @@ -3632,11 +3633,13 @@ static int nl80211_send_bss(struct sk_buff *msg, u32 pid, u32 seq, int flags,

ASSERT_WDEV_LOCK(wdev);

hdr = nl80211hdr_put(msg, pid, seq, flags,
hdr = nl80211hdr_put(msg, NETLINK_CB(cb->skb).pid, seq, flags,
NL80211_CMD_NEW_SCAN_RESULTS);
if (!hdr)
return -1;

genl_dump_check_consistent(cb, hdr, &nl80211_fam);

NLA_PUT_U32(msg, NL80211_ATTR_GENERATION, rdev->bss_generation);
NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, wdev->netdev->ifindex);

Expand Down Expand Up @@ -3725,11 +3728,12 @@ static int nl80211_dump_scan(struct sk_buff *skb,
spin_lock_bh(&rdev->bss_lock);
cfg80211_bss_expire(rdev);

cb->seq = rdev->bss_generation;

list_for_each_entry(scan, &rdev->bss_list, list) {
if (++idx <= start)
continue;
if (nl80211_send_bss(skb,
NETLINK_CB(cb->skb).pid,
if (nl80211_send_bss(skb, cb,
cb->nlh->nlmsg_seq, NLM_F_MULTI,
rdev, wdev, scan) < 0) {
idx--;
Expand Down

0 comments on commit 59b42c0

Please sign in to comment.