qcacmn: add support for CoAP

Add support for Constrained Application Protocol.

Change-Id: I425206a990778cf946a4805192eff4d54562a945
CRs-Fixed: 3254128
这个提交包含在:
Yu Wang
2022-07-27 14:33:31 +08:00
提交者 Madan Koyyalamudi
父节点 6efe5cf271
当前提交 67011a392c
修改 8 个文件,包含 168 行新增1 行删除

查看文件

@@ -5102,6 +5102,9 @@ typedef enum {
wmi_coex_dbam_complete_event_id,
#endif
wmi_spectral_capabilities_eventid,
#ifdef WLAN_FEATURE_COAP
wmi_wow_coap_buf_info_eventid,
#endif
wmi_events_max,
} wmi_conv_event_id;

查看文件

@@ -107,6 +107,10 @@
#include "wlan_coex_public_structs.h"
#endif
#ifdef WLAN_FEATURE_COAP
#include "wlan_coap_public_structs.h"
#endif
#define WMI_UNIFIED_MAX_EVENT 0x100
#ifdef WMI_EXT_DBG
@@ -3086,6 +3090,31 @@ QDF_STATUS
(*feature_set_cmd_send)(wmi_unified_t wmi_handle,
struct target_feature_set *feature_set);
#endif
#ifdef WLAN_FEATURE_COAP
QDF_STATUS
(*send_coap_add_pattern_cmd)(wmi_unified_t wmi_handle,
struct coap_offload_reply_param *param);
QDF_STATUS
(*send_coap_del_pattern_cmd)(wmi_unified_t wmi_handle,
uint8_t vdev_id, uint32_t pattern_id);
QDF_STATUS
(*send_coap_add_keepalive_pattern_cmd)(wmi_unified_t wmi_handle,
struct coap_offload_periodic_tx_param *param);
QDF_STATUS
(*send_coap_del_keepalive_pattern_cmd)(wmi_unified_t wmi_handle,
uint8_t vdev_id, uint32_t pattern_id);
QDF_STATUS
(*send_coap_cache_get_cmd)(wmi_unified_t wmi_handle,
uint8_t vdev_id, uint32_t pattern_id);
QDF_STATUS (*extract_coap_buf_info)(wmi_unified_t wmi_handle, void *evt_buf,
struct coap_buf_info *info);
#endif
};
/* Forward declartion for psoc*/
@@ -3673,6 +3702,14 @@ static inline void wmi_mc_cp_stats_attach_tlv(struct wmi_unified *wmi_handle)
}
#endif /* QCA_SUPPORT_MC_CP_STATS */
#ifdef WLAN_FEATURE_COAP
void wmi_coap_attach_tlv(wmi_unified_t wmi_handle);
#else
static inline void wmi_coap_attach_tlv(wmi_unified_t wmi_handle)
{
}
#endif
/*
* wmi_map_ch_width() - map wmi channel width to host channel width
* @wmi_width: wmi channel width

查看文件

@@ -19791,6 +19791,10 @@ static void populate_tlv_events_id(uint32_t *event_ids)
#endif
event_ids[wmi_spectral_capabilities_eventid] =
WMI_SPECTRAL_CAPABILITIES_EVENTID;
#ifdef WLAN_FEATURE_COAP
event_ids[wmi_wow_coap_buf_info_eventid] =
WMI_WOW_COAP_BUF_INFO_EVENTID;
#endif
}
#ifdef WLAN_FEATURE_LINK_LAYER_STATS
@@ -20366,6 +20370,7 @@ void wmi_tlv_attach(wmi_unified_t wmi_handle)
wmi_cp_stats_attach_tlv(wmi_handle);
wmi_gpio_attach_tlv(wmi_handle);
wmi_11be_attach_tlv(wmi_handle);
wmi_coap_attach_tlv(wmi_handle);
}
qdf_export_symbol(wmi_tlv_attach);