| 252 | } |
| 253 | |
| 254 | rt_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 | |
| 273 | rt_err_t rt_wlan_dev_ap_get_info(struct rt_wlan_device *device, struct rt_wlan_info *info) |
| 274 | { |
no test coverage detected