Selaa lähdekoodia

qcacmn: Populate TWT target API to set pdev param

Populate TWT target API to set pdev param

Change-Id: Id82ee089825293c05bace5ead97727c8c79845db
CRs-Fixed: 3168199
Vishal Miskin 3 vuotta sitten
vanhempi
sitoutus
36da36e010

+ 18 - 0
target_if/twt/inc/target_if_ext_twt.h

@@ -111,6 +111,18 @@ target_if_twt_resume_req(struct wlan_objmgr_psoc *psoc,
 QDF_STATUS
 target_if_twt_nudge_req(struct wlan_objmgr_psoc *psoc,
 			struct twt_nudge_dialog_cmd_param *req);
+
+/**
+ * target_if_twt_ac_param_send() - pdev TWT param send
+ * @psoc: Pointer to psoc object
+ * @twt_ac: TWT access category
+ * @mac_id: radio context
+ *
+ * Return: QDF Status
+ */
+QDF_STATUS
+target_if_twt_ac_param_send(struct wlan_objmgr_psoc *psoc,
+			    enum twt_traffic_ac twt_ac, uint8_t mac_id);
 #else
 static inline QDF_STATUS
 target_if_twt_register_ext_tx_ops(struct wlan_lmac_if_twt_tx_ops *twt_tx_ops)
@@ -165,6 +177,12 @@ target_if_twt_nudge_req(struct wlan_objmgr_psoc *psoc,
 	return QDF_STATUS_SUCCESS;
 }
 
+QDF_STATUS
+target_if_twt_ac_param_send(struct wlan_objmgr_psoc *psoc,
+			    enum twt_traffic_ac twt_ac, uint8_t mac_id)
+{
+	return QDF_STATUS_SUCCESS;
+}
 #endif
 #endif /*_TARGET_IF_EXT_TWT_H_ */
 

+ 3 - 0
umac/global_umac_dispatcher/lmac_if/inc/wlan_lmac_if_def.h

@@ -1360,6 +1360,7 @@ struct wlan_lmac_if_mlo_rx_ops {
  * @pause_req: function pointer to send TWT pause dialog command to FW
  * @resume_req: function pointer to send TWT resume dialog command to FW
  * @nudge_req: function pointer to send TWT nudge dialog command to FW
+ * @set_ac_param: function pointer to send TWT access category param to FW
  * @register_events: function pointer to register events from FW
  * @deregister_events: function pointer to deregister events from FW
  */
@@ -1378,6 +1379,8 @@ struct wlan_lmac_if_twt_tx_ops {
 				 struct twt_resume_dialog_cmd_param *params);
 	QDF_STATUS (*nudge_req)(struct wlan_objmgr_psoc *psoc,
 				 struct twt_nudge_dialog_cmd_param *params);
+	QDF_STATUS (*set_ac_param)(struct wlan_objmgr_psoc *psoc,
+				   enum twt_traffic_ac twt_ac, uint8_t mac_id);
 	QDF_STATUS (*register_events)(struct wlan_objmgr_psoc *psoc);
 	QDF_STATUS (*deregister_events)(struct wlan_objmgr_psoc *psoc);
 };

+ 9 - 0
umac/twt/dispatcher/inc/wlan_twt_public_structs.h

@@ -994,5 +994,14 @@ enum HOST_TWT_CMD_FOR_ACK_EVENT {
 	HOST_TWT_UNKNOWN_CMDID,
 };
 
+/* access categories */
+enum twt_traffic_ac {
+	TWT_AC_VO  = 0,
+	TWT_AC_VI  = 1,
+	TWT_AC_BE  = 2,
+	TWT_AC_BK  = 3,
+	TWT_AC_MAX = 4,
+};
+
 #endif /* _WLAN_TWT_PUBLIC_STRUCTS_H_ */