| 156 | } |
| 157 | |
| 158 | rt_err_t rt_wlan_dev_disconnect(struct rt_wlan_device *device) |
| 159 | { |
| 160 | rt_err_t result = RT_EOK; |
| 161 | |
| 162 | if (device == RT_NULL) |
| 163 | { |
| 164 | return -RT_EIO; |
| 165 | } |
| 166 | |
| 167 | result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_DISCONNECT, RT_NULL); |
| 168 | return result; |
| 169 | } |
| 170 | |
| 171 | rt_err_t rt_wlan_dev_ap_start(struct rt_wlan_device *device, struct rt_wlan_info *info, const char *password, int password_len) |
| 172 | { |
no test coverage detected