| 303 | } |
| 304 | |
| 305 | rt_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 | |
| 318 | rt_err_t rt_wlan_dev_set_powersave(struct rt_wlan_device *device, int level) |
| 319 | { |
no test coverage detected