FST: Fix search for peer's "other" connection
authorDedy Lansky <qca_dlansky@qca.qualcomm.com>
Mon, 5 Sep 2016 11:41:00 +0000 (14:41 +0300)
committerJouni Malinen <j@w1.fi>
Thu, 8 Sep 2016 08:17:45 +0000 (11:17 +0300)
commitc7f9d4482552118b391f6d9e5d6969f8b9d1fe2f
tree7ed2b012ea9795b3a93a10ec7db2e590b6fd85ee
parenta62dea4156910d85ebe42767f68eb2bc97d43245
FST: Fix search for peer's "other" connection

Upon receiving FST Setup Request from some peer on some interface,
search is made to see if same peer is connected on other interface with
specific band_id. With multiple peers, bug in
fst_group_does_iface_appear_in_other_mbies() caused wrong peer address
to be returned sometimes.

Fix this with a modified, simplified search algorithm of peer's "other"
connection.

Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
src/fst/fst_group.c
src/fst/fst_group.h
src/fst/fst_session.c