Nimble provides a library boolean which indicates if a scan is in
progress eliminating the need for m_scan_active flag.
The race condition issue mentioned in code comments has also been
addressed through recent Nimble commits removing need to explicitly
stop scan.
Simplified the code and removed the callback function that is not
currently used other than to set the removed m_scan_active flag.
Nimble provides a library boolean which indicates if a scan is in progress eliminating the need for m_scan_active flag. The race condition issue mentioned in code comments has also been addressed through recent Nimble commits removing need to explicitly stop scan. Simplified the code and removed the callback function that is not currently used other than to set the removed m_scan_active flag.