P2P: Set CTWindow only for P2P GO
authorAvraham Stern <avraham.stern@intel.com>
Wed, 14 Oct 2015 09:26:30 +0000 (12:26 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 14 Oct 2015 18:09:41 +0000 (21:09 +0300)
commit0aed3f5a8019db2f1bbe802a4543fba90af58e13
tree8e60735cd69f617c51a3c7060721c1ed3023686c
parent1d61a8efee98a5ba8fd5978fb096d255bdfa87b1
P2P: Set CTWindow only for P2P GO

CTWindow was set for all AP interfaces if the driver supports it and
this parameter is set in wpa_supplicant configuration. This results in
failing to start an AP that is not a P2P GO as this setting is rejected
by the driver.

Fix that by setting the CTWindow only for P2P GO interface.

Signed-off-by: Avraham Stern <avraham.stern@intel.com>
wpa_supplicant/ap.c