From 362800329686e6f66f95df2d7a28525018cd5222 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Sun, 19 Aug 2018 22:06:02 -0500 Subject: [PATCH] wsc: Do not check device mode There's no longer a need to do that since WSC is only created in station mode. --- src/wsc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wsc.c b/src/wsc.c index b0ea777a..60b26ca4 100644 --- a/src/wsc.c +++ b/src/wsc.c @@ -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