]> git.ipfire.org Git - thirdparty/hostap.git/commit
P2P: Clean up p2p_go_neg_failed() calls
authorJouni Malinen <jouni@qca.qualcomm.com>
Wed, 29 Oct 2014 11:04:09 +0000 (13:04 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 29 Oct 2014 11:04:09 +0000 (13:04 +0200)
commit8c00fd00cd941a789d8b2a8ae5ce374831db63c3
tree4df00cd2aa1c4c17a3fbbfde3395650dd2a42703
parent0ee41e866ca6ce3b5db1f52fb03d2af8c530186d
P2P: Clean up p2p_go_neg_failed() calls

This function is always called with the peer argument equal to
p2p->go_neg_peer, so there is no need for that argument to be there. In
addition, p2p->go_neg_peer is not NULL in cases where there is an
ongoing GO Negotiation, so the function can be simplified to just check
once whether the peer pointer is set and if not, skip all processing.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/p2p/p2p.c
src/p2p/p2p_go_neg.c
src/p2p/p2p_i.h