
The purpose of the multicast Domain Name System (mDNS) is to resolve host names to IP addresses within small networks that do not include a local name server. It utilizes essentially the same programming interfaces, packet formats and operating semantics as the unicast DNS, and the advantage is zero configuration service while no need for central or global server. Based on mDNS, the DNS-SD (Service Discovery) allows clients to discover a named list of services by type in a specified domain using standard DNS queries. Here, we provide the ability to advertise the available services by responding to mDNS queries. Change-Id: Ie6a3cd319d219c2f338d83f4bdbd704a090711c4 CRs-Fixed: 3008552
106 lines
3.1 KiB
C
106 lines
3.1 KiB
C
/*
|
|
* Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
* above copyright notice and this permission notice appear in all
|
|
* copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
|
|
* WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
|
|
* WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
|
|
* AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
|
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
|
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
* PERFORMANCE OF THIS SOFTWARE.
|
|
*/
|
|
/**
|
|
* DOC: Implement API's specific to fw offload component.
|
|
*/
|
|
|
|
#ifndef _WMI_UNIFIED_FWOL_API_H_
|
|
#define _WMI_UNIFIED_FWOL_API_H_
|
|
#include "wlan_fwol_public_structs.h"
|
|
|
|
#ifdef WLAN_FEATURE_ELNA
|
|
/**
|
|
* wmi_unified_send_set_elna_bypass_cmd() - Send WMI set eLNA bypass cmd
|
|
* @wmi_handle: wmi handle
|
|
* @req: set eLNA bypass request
|
|
*
|
|
* Send WMI set eLNA bypass command to firmware.
|
|
*
|
|
* Return: QDF_STATUS
|
|
*/
|
|
QDF_STATUS
|
|
wmi_unified_send_set_elna_bypass_cmd(struct wmi_unified *wmi_handle,
|
|
struct set_elna_bypass_request *req);
|
|
|
|
/**
|
|
* wmi_unified_send_get_elna_bypass_cmd() - Send WMI get eLNA bypass cmd
|
|
* @wmi_handle: wmi handle
|
|
* @req: get eLNA bypass request
|
|
*
|
|
* Send WMI get eLNA bypass command to firmware.
|
|
*
|
|
* Return: QDF_STATUS
|
|
*/
|
|
QDF_STATUS
|
|
wmi_unified_send_get_elna_bypass_cmd(struct wmi_unified *wmi_handle,
|
|
struct get_elna_bypass_request *req);
|
|
|
|
/**
|
|
* wmi_extract_get_elna_bypass_resp() - Extract WMI get eLNA bypass response
|
|
* @wmi_handle: wmi handle
|
|
* @resp_buf: response buffer
|
|
* @resp: get eLNA bypass response
|
|
*
|
|
* Extract WMI get eLNA bypass response from firmware.
|
|
*
|
|
* Return: QDF_STATUS
|
|
*/
|
|
QDF_STATUS
|
|
wmi_extract_get_elna_bypass_resp(struct wmi_unified *wmi_handle, void *resp_buf,
|
|
struct get_elna_bypass_response *resp);
|
|
#endif /* WLAN_FEATURE_ELNA */
|
|
|
|
#ifdef WLAN_SEND_DSCP_UP_MAP_TO_FW
|
|
/**
|
|
* wmi_unified_send_dscp_tip_map_cmd() - Send dscp-to-tid map values cmd
|
|
* @wmi_handle: wmi handle
|
|
* @dscp_to_tid_map: array of dscp_tid map values
|
|
*
|
|
* Send dscp-to-tid map values to FW.
|
|
*
|
|
* Return: QDF_STATUS
|
|
*/
|
|
QDF_STATUS
|
|
wmi_unified_send_dscp_tip_map_cmd(struct wmi_unified *wmi_handle,
|
|
uint32_t *dscp_to_tid_map);
|
|
#else
|
|
static inline QDF_STATUS
|
|
wmi_unified_send_dscp_tip_map_cmd(struct wmi_unified *wmi_handle,
|
|
uint32_t *dscp_to_tid_map)
|
|
{
|
|
return QDF_STATUS_SUCCESS;
|
|
}
|
|
#endif /* WLAN_SEND_DSCP_UP_MAP_TO_FW */
|
|
|
|
#ifdef WLAN_FEATURE_MDNS_OFFLOAD
|
|
/**
|
|
* wmi_unified_send_set_mdns_config_cmd() - Send WMI set mDNS config cmd
|
|
* @wmi_handle: wmi handle
|
|
* @mdns_info: mdns config info
|
|
*
|
|
* Send WMI set mDNS config command to firmware.
|
|
*
|
|
* Return: QDF_STATUS
|
|
*/
|
|
QDF_STATUS
|
|
wmi_unified_send_set_mdns_config_cmd(struct wmi_unified *wmi_handle,
|
|
struct mdns_config_info *mdns_info);
|
|
#endif /* WLAN_FEATURE_MDNS_OFFLOAD */
|
|
|
|
#endif /* _WMI_UNIFIED_FWOL_API_H_ */
|