MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_wlan_scan

Function rt_wlan_scan

components/drivers/wlan/dev_wlan_mgnt.c:1579–1593  ·  view source on GitHub ↗

Call the underlying scan function, which is asynchronous. The hotspots scanned are returned by callbacks */

Source from the content-addressed store, hash-verified

1577/* Call the underlying scan function, which is asynchronous.
1578The hotspots scanned are returned by callbacks */
1579rt_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
1595rt_err_t rt_wlan_scan_with_info(struct rt_wlan_info *info)
1596{

Callers

nothing calls this directly

Calls 2

_sta_is_nullFunction · 0.85
rt_wlan_dev_scanFunction · 0.85

Tested by

no test coverage detected