[PATCH] P2P: wpa_supplicant dump notify noa

Janusz.Dziedzic at tieto.com Janusz.Dziedzic at tieto.com
Fri Oct 7 08:49:48 EDT 2011


Fix for wpa_supplicant dump in p2p_group_notif_noa()
function in case of wpabuf reuse.
---
 src/p2p/p2p_group.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/p2p/p2p_group.c b/src/p2p/p2p_group.c
index 14a475d..cc2542d 100644
--- a/src/p2p/p2p_group.c
+++ b/src/p2p/p2p_group.c
@@ -494,7 +494,7 @@ int p2p_group_notif_noa(struct p2p_group *group, const u8 *noa,
 	} else {
 		if (group->noa) {
 			if (wpabuf_size(group->noa) >= noa_len) {
-				group->noa->size = 0;
+				group->noa->used = 0;
 				wpabuf_put_data(group->noa, noa, noa_len);
 			} else {
 				wpabuf_free(group->noa);
-- 
1.7.0.4

Best regards, 
Janusz Dziedzic

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-P2P-wpa_supplicant-dump-notify-noa.patch
Type: application/octet-stream
Size: 842 bytes
Desc: 0001-P2P-wpa_supplicant-dump-notify-noa.patch
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20111007/0ab9c1f0/attachment.obj 


More information about the HostAP mailing list