Browse Source

nl80211: Remove duplicated check in nl80211_setup_ap()

Just removing a duplicated condition.

Signed-off-by: Eduardo Abinader <eduardoabinader@gmail.com>
Eduardo Abinader 8 years ago
parent
commit
647862eb60
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/drivers/driver_nl80211.c

+ 1 - 2
src/drivers/driver_nl80211.c

@@ -4384,8 +4384,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 &&