staging: wilc1000: assign scan result callback before starting the scan
authorAdham Abozaeid <adham.abozaeid@microchip.com>
Wed, 27 Mar 2019 20:28:34 +0000 (20:28 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Mar 2019 16:10:18 +0000 (17:10 +0100)
commiteab0754655a6bb20a0e3a863ef3e46b176040ca7
treed51f756175232f3a3e12ea45540cc5259c6665a4
parent3589e74873a91b2d1ab4b902bc55cbebc0581317
staging: wilc1000: assign scan result callback before starting the scan

When scan is triggered, sometimes scan results are received before the scan
result callback is assigned, causing the recieved results to be ignored.

Signed-off-by: Adham Abozaeid <adham.abozaeid@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c