diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2014-06-30 09:54:22 -0700 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2014-06-30 14:18:42 -0700 |
commit | d30ac604c9f6da71a0dd7f46d25be05a2a62cfbb (patch) | |
tree | 9e867bd7056f99f73c39b556a1393b9614e622b0 /src/p2p/p2p.c | |
parent | 2271d3fdd5982d0e5e81cf9999a861bba933eacb (diff) | |
download | wpa_supplicant_8-d30ac604c9f6da71a0dd7f46d25be05a2a62cfbb.tar.gz |
Cumulative patch from commit ea18024d78bde140fb8f74d216d757816bfd6e9b
ea18024 dbus: Add PropertiesChanged signal to Peer object
36716ee P2P: Add a utility function to run a method on every known peer
bf03566 dbus: Remove GroupMember object type and use Peer instead
17a37d7 dbus: Add a Groups property to a Peer object on which it belongs
6f04642 P2P: Add utility functions to get GO/client interface
c6386e5 P2P Add a utility to run a callback on all available groups
8e76f48 P2P: Add a utility function to get the group configuration
37d8a27 TDLS: Clean up add/set peer operations
bcd2baa TDLS: Tear down connection on malformed Setup Confirm
8190540 TDLS: Abort local setup when failing to add STA
1dce7a2 TDLS: Update peer STA as soon as full peer info is available
819c943 TDLS: Remove peer from global peer-list on free
5841958 hostapd: Use channel switch fallback on error
8974620 hostapd: Perform multi-BSS CSA for DFS properly
ccac7c6 hostapd: Make chan_switch command per-interface not per-BSS
6782b68 hostapd: Move CSA parameters to hostapd_data
1de809e eapol_test: Fix -R option to not replace -s option value
3c5d34e Change channel before IBSS associations
ebffdbc nl80211: Refactor mode switch logic
Change-Id: I1cbdc4dce586ec69f693b3b04eb340a5332f6b40
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'src/p2p/p2p.c')
-rw-r--r-- | src/p2p/p2p.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c index d0191e74..48f3aa65 100644 --- a/src/p2p/p2p.c +++ b/src/p2p/p2p.c @@ -4494,6 +4494,19 @@ void p2p_err(struct p2p_data *p2p, const char *fmt, ...) } +void p2p_loop_on_known_peers(struct p2p_data *p2p, + void (*peer_callback)(struct p2p_peer_info *peer, + void *user_data), + void *user_data) +{ + struct p2p_device *dev, *n; + + dl_list_for_each_safe(dev, n, &p2p->devices, struct p2p_device, list) { + peer_callback(&dev->info, user_data); + } +} + + #ifdef CONFIG_WPS_NFC static struct wpabuf * p2p_build_nfc_handover(struct p2p_data *p2p, |