diff options
author | Konguraj(Raj) Kulanthaivel <konguraj.kulanthaivel@intel.com> | 2011-02-24 21:51:17 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2011-02-24 21:51:17 +0200 |
commit | c5db8e517040f096d6c180150219c8ff88791efa (patch) | |
tree | de148421557e3890aa81e71abcb94a199ab7c657 /src/p2p/p2p_go_neg.c | |
parent | e926bcffd80ad0df3a7dc987d396a3b28f212783 (diff) | |
download | external_wpa_supplicant_8_ti-c5db8e517040f096d6c180150219c8ff88791efa.zip external_wpa_supplicant_8_ti-c5db8e517040f096d6c180150219c8ff88791efa.tar.gz external_wpa_supplicant_8_ti-c5db8e517040f096d6c180150219c8ff88791efa.tar.bz2 |
P2P: Embed publically visible struct in peer info
This embeds some information about each P2P peer that will be publically
visible in a struct that is shared.
The dev_found notification function is also passed the new struct, which
requires some work for the driver-based P2P management.
Signed-off-by: Konguraj(Raj) Kulanthaivel <konguraj.kulanthaivel@intel.com>
Signed-off-by: Fabien Marotte <fabienx.marotte@linux.intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'src/p2p/p2p_go_neg.c')
-rw-r--r-- | src/p2p/p2p_go_neg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/p2p/p2p_go_neg.c b/src/p2p/p2p_go_neg.c index d5e3f1c..1c96486 100644 --- a/src/p2p/p2p_go_neg.c +++ b/src/p2p/p2p_go_neg.c @@ -196,7 +196,7 @@ int p2p_connect_send(struct p2p_data *p2p, struct p2p_device *dev) wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG, "P2P: No Listen/Operating frequency known for the " "peer " MACSTR " to send GO Negotiation Request", - MAC2STR(dev->p2p_device_addr)); + MAC2STR(dev->info.p2p_device_addr)); return -1; } @@ -210,8 +210,8 @@ int p2p_connect_send(struct p2p_data *p2p, struct p2p_device *dev) p2p->go_neg_peer = dev; dev->flags |= P2P_DEV_WAIT_GO_NEG_RESPONSE; dev->connect_reqs++; - if (p2p_send_action(p2p, freq, dev->p2p_device_addr, - p2p->cfg->dev_addr, dev->p2p_device_addr, + if (p2p_send_action(p2p, freq, dev->info.p2p_device_addr, + p2p->cfg->dev_addr, dev->info.p2p_device_addr, wpabuf_head(req), wpabuf_len(req), 200) < 0) { wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG, "P2P: Failed to send Action frame"); |