wifi-p2p: fix pending action waiting for supplicant

    <info>  [1549611177.5815] device (wlan0): supplicant interface state: starting -> ready
    <debug> [1549611177.5816] device[0x55d1781ae5d0] (p2p-dev-wlan0): P2P: Releasing WPA supplicant interfaces.
    <debug> [1549611177.5816] device[0x55d1781ae5d0] (p2p-dev-wlan0): P2P: WPA supplicant management interface changed to /fi/w1/wpa_supplicant1/Interfaces/1.
    <trace> [1549611177.5816] device[0x55d1781ae5d0] (p2p-dev-wlan0): remove_pending_action (0): 'waiting-for-supplicant' not pending (expected)
    <debug> [1549611177.5816] device[0x55d1781ae5d0] (p2p-dev-wlan0): constructed (NMDeviceWifiP2P)
    <debug> [1549611177.5816] device[0x55d1781ae5d0] (p2p-dev-wlan0): add_pending_action (1): 'waiting-for-supplicant'

We set the supplicant interface as construct property NM_DEVICE_WIFI_P2P_MGMT_IFACE.
At that point, supplicant is ready. Later, in constructed(), we would again add
a pending action that gets never removed.

Refactor that, to keep track of whether we have a pending action registered.
4 jobs for th/wifi-p2p-wait-supplicant-fix in 50 minutes and 59 seconds (queued for 370 minutes and 54 seconds)
Status Job ID Name Coverage
  Test
passed #110212
build_f28

00:39:39

passed #110213
build_f_latest

00:28:14

passed #110214
allowed to fail
build_f_rawhide

00:28:59

passed #110211
allowed to fail
checkpatch

00:05:51