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

Function rt_wlan_dev_set_mac

components/drivers/wlan/dev_wlan.c:305–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305rt_err_t rt_wlan_dev_set_mac(struct rt_wlan_device *device, rt_uint8_t mac[6])
306{
307 rt_err_t result = RT_EOK;
308
309 if (device == RT_NULL)
310 {
311 return -RT_EIO;
312 }
313
314 result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_SET_MAC, &mac[0]);
315 return result;
316}
317
318rt_err_t rt_wlan_dev_set_powersave(struct rt_wlan_device *device, int level)
319{

Callers 1

rt_wlan_set_macFunction · 0.85

Calls 1

rt_device_controlFunction · 0.85

Tested by

no test coverage detected