aboutsummaryrefslogtreecommitdiffstats
path: root/src/p2p
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-11-18 21:58:18 +0200
committerJouni Malinen <j@w1.fi>2011-11-18 21:58:18 +0200
commitb5472a450fc1e023a448fc5fc16f7bab93ffbd44 (patch)
tree53bed96029b8f5bc2fa8777d15f42f0ee933628b /src/p2p
parent19df9b0761021e983e3e3ca0d65e143347028bd5 (diff)
downloadexternal_wpa_supplicant_8_ti-b5472a450fc1e023a448fc5fc16f7bab93ffbd44.zip
external_wpa_supplicant_8_ti-b5472a450fc1e023a448fc5fc16f7bab93ffbd44.tar.gz
external_wpa_supplicant_8_ti-b5472a450fc1e023a448fc5fc16f7bab93ffbd44.tar.bz2
P2P: Fix collection of member-in-group information for peer entries
Invalid use of memcpy instead of memcmp in comparison resulted in the GO interface address getting set incorrectly if the GO did not show up in scan results anymore. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/p2p')
-rw-r--r--src/p2p/p2p.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/p2p/p2p.c b/src/p2p/p2p.c
index 48a5d00..e750547 100644
--- a/src/p2p/p2p.c
+++ b/src/p2p/p2p.c
@@ -365,7 +365,7 @@ static int p2p_add_group_clients(struct p2p_data *p2p, const u8 *go_dev_addr,
* group, the information will be restored in the loop following this.
*/
dl_list_for_each(dev, &p2p->devices, struct p2p_device, list) {
- if (os_memcpy(dev->member_in_go_iface, go_interface_addr,
+ if (os_memcmp(dev->member_in_go_iface, go_interface_addr,
ETH_ALEN) == 0) {
os_memset(dev->member_in_go_iface, 0, ETH_ALEN);
os_memset(dev->member_in_go_dev, 0, ETH_ALEN);