| 1107 | } |
| 1108 | |
| 1109 | rt_bool_t rt_wlan_is_connected(void) |
| 1110 | { |
| 1111 | rt_bool_t _connect; |
| 1112 | |
| 1113 | if (_sta_is_null()) |
| 1114 | { |
| 1115 | return RT_FALSE; |
| 1116 | } |
| 1117 | _connect = _sta_mgnt.state & RT_WLAN_STATE_CONNECT ? RT_TRUE : RT_FALSE; |
| 1118 | RT_WLAN_LOG_D("%s is run : %s", __FUNCTION__, _connect ? "connect" : "disconnect"); |
| 1119 | return _connect; |
| 1120 | } |
| 1121 | |
| 1122 | rt_bool_t rt_wlan_is_ready(void) |
| 1123 | { |
no test coverage detected