P2PS: Re-factor wpas_p2p_get_go_group() and wpas_p2p_group_go_ssid()
authorIlan Peer <ilan.peer@intel.com>
Thu, 24 Sep 2015 17:37:56 +0000 (20:37 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 7 Oct 2015 14:07:21 +0000 (17:07 +0300)
commit8d5e73290f44d076634b1eb827d86038206c8112
tree22ae88e9057eea993a4cbb95ad2c08a8372d0bd2
parent8cc4b06f751d52f4327b169c3e89de6189c1c108
P2PS: Re-factor wpas_p2p_get_go_group() and wpas_p2p_group_go_ssid()

Re-factor wpas_p2p_get_go_group() to:

1. Skip the dedicated P2P Device management interface if it is used.
2. Instead of iterating all the interface configured networks,
   only access the current_ssid pointer to check if the current
   interface is acting as a persistent P2P GO.

To avoid code duplication, also re-factor wpas_p2p_group_go_ssid()
to call wpas_p2p_get_go_group().

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/p2p_supplicant.c