From 6078a89c0724d4ecf62ecd35e13b4460534a295a Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Fri, 1 Nov 2019 20:50:20 +0530 Subject: [PATCH] qcacmn: Add support for oem data event Currently use of comamnd QCA_NL80211_VENDOR_SUBCMD_OEM_DATA is to pass data blobs from Application to FW but there is no mechanism to send the data blobs from FW to Application. To meet the above requirement update the usage of existing OEM DATA command to use it as a vendor event as well to send data blob from host to Application. Change-Id: I8df98f850f4dd56f55dba43c5364a52c425ba9ed CRs-Fixed: 2573468 --- os_if/linux/qca_vendor.h | 1 + wmi/inc/wmi_unified_param.h | 1 + wmi/src/wmi_unified_tlv.c | 1 + 3 files changed, 3 insertions(+) diff --git a/os_if/linux/qca_vendor.h b/os_if/linux/qca_vendor.h index 1e934cb27a..c8b879eb0a 100644 --- a/os_if/linux/qca_vendor.h +++ b/os_if/linux/qca_vendor.h @@ -1022,6 +1022,7 @@ enum qca_nl80211_vendor_subcmds_index { QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH_INDEX, QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING_INDEX, QCA_NL80211_VENDOR_SUBCMD_ROAM_INDEX, + QCA_NL80211_VENDOR_SUBCMD_OEM_DATA_INDEX, }; /** diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 1661c6f459..1c8c307ff6 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -4552,6 +4552,7 @@ typedef enum { wmi_get_ani_level_event_id, wmi_peer_tx_pn_response_event_id, wmi_roam_stats_event_id, + wmi_oem_data_event_id, wmi_events_max, } wmi_conv_event_id; diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index ae6a2700a7..a1b3130dd7 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -13470,6 +13470,7 @@ static void populate_tlv_events_id(uint32_t *event_ids) event_ids[wmi_peer_tx_pn_response_event_id] = WMI_PEER_TX_PN_RESPONSE_EVENTID; event_ids[wmi_roam_stats_event_id] = WMI_ROAM_STATS_EVENTID; + event_ids[wmi_oem_data_event_id] = WMI_OEM_DATA_EVENTID; } /**