commit 362800329686e6f66f95df2d7a28525018cd5222
parent cc9fc8de676e7855be63c69ce6fcf7483ffcd164
Author: Denis Kenzior <denkenz@gmail.com>
Date: Sun, 19 Aug 2018 22:06:02 -0500
wsc: Do not check device mode
There's no longer a need to do that since WSC is only created in station
mode.
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git 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