Call the underlying scan function, which is asynchronous. The hotspots scanned are returned by callbacks */
| 1577 | /* Call the underlying scan function, which is asynchronous. |
| 1578 | The hotspots scanned are returned by callbacks */ |
| 1579 | rt_err_t rt_wlan_scan(void) |
| 1580 | { |
| 1581 | rt_err_t err = RT_EOK; |
| 1582 | |
| 1583 | if (_sta_is_null()) |
| 1584 | { |
| 1585 | return -RT_EIO; |
| 1586 | } |
| 1587 | RT_WLAN_LOG_D("%s is run", __FUNCTION__); |
| 1588 | |
| 1589 | MGNT_LOCK(); |
| 1590 | err = rt_wlan_dev_scan(STA_DEVICE(), RT_NULL); |
| 1591 | MGNT_UNLOCK(); |
| 1592 | return err; |
| 1593 | } |
| 1594 | |
| 1595 | rt_err_t rt_wlan_scan_with_info(struct rt_wlan_info *info) |
| 1596 | { |
nothing calls this directly
no test coverage detected