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

Function rt_wlan_dev_get_mac

components/drivers/wlan/dev_wlan.c:292–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292rt_err_t rt_wlan_dev_get_mac(struct rt_wlan_device *device, rt_uint8_t mac[6])
293{
294 rt_err_t result = RT_EOK;
295
296 if (device == RT_NULL)
297 {
298 return -RT_EIO;
299 }
300
301 result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_GET_MAC, &mac[0]);
302 return result;
303}
304
305rt_err_t rt_wlan_dev_set_mac(struct rt_wlan_device *device, rt_uint8_t mac[6])
306{

Callers 1

rt_wlan_get_macFunction · 0.85

Calls 1

rt_device_controlFunction · 0.85

Tested by

no test coverage detected