Home | History | Annotate | Download | only in wifi_hal

Lines Matching refs:handle

55 wifi_error wifi_initialize(wifi_handle* handle) {
56 if (handle == nullptr) {
75 *handle = reinterpret_cast<wifi_handle>(sHalState);
80 void wifi_cleanup(wifi_handle handle, wifi_cleaned_up_handler handler) {
81 if (handle == nullptr) {
99 if (asHalState(handle)->stop(callback)) {
110 handler(handle);
113 void wifi_event_loop(wifi_handle handle) {
114 if (handle == nullptr) {
118 asHalState(handle)->eventLoop();
121 wifi_error wifi_get_supported_feature_set(wifi_interface_handle handle,
123 if (handle == nullptr) {
127 return asInterface(handle)->getSupportedFeatureSet(set);
130 wifi_error wifi_get_ifaces(wifi_handle handle,
133 if (handle == nullptr) {
137 return asInfo(handle)->getInterfaces(num, interfaces);
140 wifi_error wifi_get_iface_name(wifi_interface_handle handle,
143 if (handle == nullptr || (name == nullptr && size > 0)) {
147 return asInterface(handle)->getName(name, size);
151 wifi_interface_handle handle,
153 if (handle == nullptr) {
157 return asInterface(handle)->getLinkStats(id, handler);
160 wifi_error wifi_set_link_stats(wifi_interface_handle handle,
162 if (handle == nullptr) {
166 return asInterface(handle)->setLinkStats(params);
170 wifi_interface_handle handle,
172 if (handle == nullptr) {
176 return asInterface(handle)->setAlertHandler(id, handler);
180 wifi_interface_handle handle) {
181 if (handle == nullptr) {
185 return asInterface(handle)->resetAlertHandler(id);
188 wifi_error wifi_get_firmware_version(wifi_interface_handle handle,
191 if (handle == nullptr) {
195 return asInterface(handle)->getFirmwareVersion(buffer, buffer_size);
198 wifi_error wifi_get_driver_version(wifi_interface_handle handle,
201 if (handle == nullptr) {
205 return asInterface(handle)->getDriverVersion(buffer, buffer_size);
208 wifi_error wifi_set_scanning_mac_oui(wifi_interface_handle handle,
210 if (handle == nullptr) {
214 return asInterface(handle)->setScanningMacOui(scan_oui);
217 wifi_error wifi_clear_link_stats(wifi_interface_handle handle,
222 if (handle == nullptr) {
226 return asInterface(handle)->clearLinkStats(stats_clear_req_mask,
232 wifi_error wifi_get_valid_channels(wifi_interface_handle handle,
238 if (handle == nullptr) {
242 return asInterface(handle)->getValidChannels(band,
248 wifi_error wifi_start_logging(wifi_interface_handle handle,
254 if (handle == nullptr) {
258 return asInterface(handle)->startLogging(verbose_level,
265 wifi_error wifi_set_country_code(wifi_interface_handle handle,
267 if (handle == nullptr) {
271 return asInterface(handle)->setCountryCode(country_code);
275 wifi_interface_handle handle,
277 if (handle == nullptr) {
281 return asInterface(handle)->setLogHandler(id, handler);
284 wifi_error wifi_get_ring_buffers_status(wifi_interface_handle handle,
287 if (handle == nullptr) {
291 return asInterface(handle)->getRingBuffersStatus(num_rings, status);
294 wifi_error wifi_get_logger_supported_feature_set(wifi_interface_handle handle,
296 if (handle == nullptr) {
300 return asInterface(handle)->getLoggerSupportedFeatureSet(support);
303 wifi_error wifi_get_ring_data(wifi_interface_handle handle, char *ring_name) {
304 if (handle == nullptr) {
308 return asInterface(handle)->getRingData(ring_name);
311 wifi_error wifi_configure_nd_offload(wifi_interface_handle handle, u8 enable) {
312 if (handle == nullptr) {
316 return asInterface(handle)->configureNdOffload(enable);
319 wifi_error wifi_start_pkt_fate_monitoring(wifi_interface_handle handle) {
320 if (handle == nullptr) {
324 return asInterface(handle)->startPacketFateMonitoring();
327 wifi_error wifi_get_tx_pkt_fates(wifi_interface_handle handle,
331 if (handle == nullptr) {
335 return asInterface(handle)->getTxPacketFates(tx_report_bufs,
340 wifi_error wifi_get_rx_pkt_fates(wifi_interface_handle handle,
344 if (handle == nullptr) {
348 return asInterface(handle)->getRxPacketFates(rx_report_bufs,
353 wifi_error wifi_get_packet_filter_capabilities(wifi_interface_handle handle,
356 if (handle == nullptr) {
360 return asInterface(handle)->getPacketFilterCapabilities(version, max_len);
364 wifi_get_wake_reason_stats(wifi_interface_handle handle,
366 if (handle == nullptr) {
370 return asInterface(handle)->getWakeReasonStats(wifi_wake_reason_cnt);