Procházet zdrojové kódy

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
Ashish Kumar Dhanotiya před 5 roky
rodič
revize
6078a89c07

+ 1 - 0
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,
 };
 
 /**

+ 1 - 0
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;
 

+ 1 - 0
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;
 }
 
 /**