TDLS: Use existing peer entry if available when processing discovery
authorSunil Dutt <duttus@codeaurora.org>
Tue, 5 Feb 2013 11:10:34 +0000 (13:10 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 5 Feb 2013 11:10:34 +0000 (13:10 +0200)
commitcd22fbf85cef7af73a6f5e0e12dceb9e54e24063
treebd37b2c30dcbe2831c3ae88b3457daf03aa4fc9a
parent2b79164f12d505c66a01abcacc78fc615bc31dcf
TDLS: Use existing peer entry if available when processing discovery

Peer entries were getting added on every discover request from the peer,
thus resulting in multiple entries with the same MAC address. Ensures
that a check is done for the presence of the peer entry and reuse the
existing entry instead of adding a new one.

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
src/rsn_supp/tdls.c