staging: wilc1000: use correct 'struct remain_ch' variable in scan complete
authorAjay Singh <ajay.kathat@microchip.com>
Sun, 2 Dec 2018 18:03:20 +0000 (18:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 08:49:45 +0000 (09:49 +0100)
Use the correct reference to remain_ch variable in scan complete.
Passing 'msg->body.remain_on_ch' to handle_remain_on_chan is not
correct. So used the correct reference used to store roc related
information during the scan.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c

index dc02561fc640420d7537781a98d3642482c5c3d0..9139e0e59adc1f8b6e0d7be7d6b991f29c7cc59a 100644 (file)
@@ -1613,7 +1613,8 @@ static void handle_scan_complete(struct work_struct *work)
        handle_scan_done(msg->vif, SCAN_EVENT_DONE);
 
        if (msg->vif->hif_drv->remain_on_ch_pending)
-               handle_remain_on_chan(msg->vif, &msg->body.remain_on_ch);
+               handle_remain_on_chan(msg->vif,
+                                     &msg->vif->hif_drv->remain_on_ch);
        kfree(msg);
 }