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

Function rt_wlan_dev_disconnect

components/drivers/wlan/dev_wlan.c:158–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158rt_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
171rt_err_t rt_wlan_dev_ap_start(struct rt_wlan_device *device, struct rt_wlan_info *info, const char *password, int password_len)
172{

Callers 1

rt_wlan_disconnectFunction · 0.85

Calls 1

rt_device_controlFunction · 0.85

Tested by

no test coverage detected