wsc: Do not check device mode

There's no longer a need to do that since WSC is only created in station
mode.
This commit is contained in:
Denis Kenzior 2018-08-19 22:06:02 -05:00
parent cc9fc8de67
commit 3628003296
1 changed files with 0 additions and 2 deletions

View File

@ -487,8 +487,6 @@ static void wsc_check_can_connect(struct wsc *wsc, struct scan_bss *target)
{
l_debug("%p", wsc);
if (device_get_mode(wsc->device) != DEVICE_MODE_STATION)
goto error;
/*
* For now we assign the target pointer directly, since we should not
* be triggering any more scans while disconnecting / connecting