nl80211: Remove duplicated check in nl80211_setup_ap()

Just removing a duplicated condition.

Signed-off-by: Eduardo Abinader <eduardoabinader@gmail.com>
This commit is contained in:
Eduardo Abinader 2016-08-16 17:43:04 +02:00 committed by Jouni Malinen
parent 26820b4fc1
commit 647862eb60

View 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 &&