[PATCH] nl80211: remove duplicated check on nl80211_setup_ap

Eduardo Abinader eduardoabinader at gmail.com
Tue Aug 16 08:43:04 PDT 2016


Just removing a duplicated condition.

Signed-off-by: Eduardo Abinader <eduardoabinader at gmail.com>
---
 src/drivers/driver_nl80211.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index 3391012..f996c27 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -4382,8 +4382,7 @@ static int nl80211_setup_ap(struct i802_bss *bss)
 				   "nl80211: Failed to subscribe for mgmt frames from SME driver - trying to run without it");
 
 	if (!drv->device_ap_sme && drv->use_monitor &&
-	    nl80211_create_monitor_interface(drv) &&
-	    !drv->device_ap_sme)
+	    nl80211_create_monitor_interface(drv))
 		return -1;
 
 	if (drv->device_ap_sme &&
-- 
2.5.0




More information about the Hostap mailing list