]> git.ipfire.org Git - thirdparty/hostap.git/commit - wpa_supplicant/wpa_supplicant.c
Clean up setting of iface->p2p_mgmt flag
authorVasyl Vavrychuk <vvavrychuk@gmail.com>
Mon, 12 Feb 2018 19:29:06 +0000 (21:29 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 2 Apr 2018 09:13:59 +0000 (12:13 +0300)
commit8fb2b35735b47926ab0d5fd164c42c0e1b3399a6
tree8318e3775413652737a12f8a123aeab064f80868
parentd53401c54bd4148d1336cafffbc9752cf2ee5b71
Clean up setting of iface->p2p_mgmt flag

Previously we set this flag to one in wpa_supplicant_init_iface() if
Wi-Fi controller does not have a dedicated P2P-interface.

This setting had effect only in scope of wpa_supplicant_init_iface() and
it contradicts with comment to struct wpa_interface::p2p_mgmt field.
This comment says that this flag is used only if Wi-Fi controller has
dedicated P2P-device interface.

Also it contradicts with usage of similiar p2p_mgmt field in struct
wpa_supplicant. Again struct wpa_supplicant::p2p_mgmt is set only for
dedicated P2P-device interface.

After this change wpa_interface become input argument to
wpa_supplicant_init_iface() that we are not modifying.

Signed-off-by: Vasyl Vavrychuk <vvavrychuk@gmail.com>
wpa_supplicant/wpa_supplicant.c