| 290 | } |
| 291 | |
| 292 | rt_err_t rt_wlan_dev_get_mac(struct rt_wlan_device *device, rt_uint8_t mac[6]) |
| 293 | { |
| 294 | rt_err_t result = RT_EOK; |
| 295 | |
| 296 | if (device == RT_NULL) |
| 297 | { |
| 298 | return -RT_EIO; |
| 299 | } |
| 300 | |
| 301 | result = rt_device_control(RT_DEVICE(device), RT_WLAN_CMD_GET_MAC, &mac[0]); |
| 302 | return result; |
| 303 | } |
| 304 | |
| 305 | rt_err_t rt_wlan_dev_set_mac(struct rt_wlan_device *device, rt_uint8_t mac[6]) |
| 306 | { |
no test coverage detected