3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 12:52:49 +01:00

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

View File

@ -487,8 +487,6 @@ static void wsc_check_can_connect(struct wsc *wsc, struct scan_bss *target)
{ {
l_debug("%p", wsc); 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 * For now we assign the target pointer directly, since we should not
* be triggering any more scans while disconnecting / connecting * be triggering any more scans while disconnecting / connecting