| 316 | } |
| 317 | |
| 318 | rt_err_t rt_wlan_dev_set_powersave(struct rt_wlan_device *device, int level) |
| 319 | { |
| 320 | rt_err_t result = RT_EOK; |
| 321 | |
| 322 | if (device == RT_NULL) |
| 323 | { |
| 324 | return -RT_EIO; |
| 325 | } |
| 326 | |
| 327 | result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_SET_POWERSAVE, &level); |
| 328 | return result; |
| 329 | } |
| 330 | |
| 331 | int rt_wlan_dev_get_powersave(struct rt_wlan_device *device) |
| 332 | { |
no test coverage detected