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

Function rt_wlan_dev_get_info

components/drivers/wlan/dev_wlan.c:254–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254rt_err_t rt_wlan_dev_get_info(struct rt_wlan_device *device, struct rt_wlan_info *info)
255{
256 rt_err_t result = RT_EOK;
257
258 if (device == RT_NULL)
259 {
260 return -RT_EIO;
261 }
262
263 result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_GET_INFO, info);
264 if (result != RT_EOK)
265 {
266 rt_set_errno(result);
267 return 0;
268 }
269
270 return result;
271}
272
273rt_err_t rt_wlan_dev_ap_get_info(struct rt_wlan_device *device, struct rt_wlan_info *info)
274{

Callers 1

rt_wlan_get_infoFunction · 0.85

Calls 2

rt_device_controlFunction · 0.85
rt_set_errnoFunction · 0.85

Tested by

no test coverage detected