Sorry. Forgot this. @@ -466,6 +466,25 @@ ieee802_1x_kay_get_peer_sci(struct ieee802_1x_mka_participant *participant, } +/** + * ieee802_1x_kay_get_live_peer_sci + */ +static struct ieee802_1x_kay_peer * +ieee802_1x_kay_get_live_peer_sci(struct ieee802_1x_mka_participant *participant, + const struct ieee802_1x_mka_sci *sci) +{ + struct ieee802_1x_kay_peer *peer; + + dl_list_for_each(peer, &participant->live_peers, + struct ieee802_1x_kay_peer, list) { + if (sci_equal(&peer->sci, sci)) + return peer; + } + + return NULL; +} + + _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap