nl80211: Remove duplicated check in nl80211_setup_ap()
authorEduardo Abinader <eduardoabinader@gmail.com>
Tue, 16 Aug 2016 15:43:04 +0000 (17:43 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 17 Aug 2016 10:42:11 +0000 (13:42 +0300)
Just removing a duplicated condition.

Signed-off-by: Eduardo Abinader <eduardoabinader@gmail.com>
src/drivers/driver_nl80211.c

index 338cdc9..61e641e 100644 (file)
@@ -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 &&