瀏覽代碼

qcacmn: Add QDF APIs for fctx and ftype

Add QDF APIs to set or get fctx and ftype

Change-Id: I4c752f7a5be8b01a11eec9775845384dc2a6a4c1
Chaithanya Garrepalli 3 年之前
父節點
當前提交
a4167759a9
共有 1 個文件被更改,包括 26 次插入0 次删除
  1. 26 0
      qdf/inc/i_qdf_nbuf_api_m.h

+ 26 - 0
qdf/inc/i_qdf_nbuf_api_m.h

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2014-2017,2019-2021 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2021 Qualcomm Innovation Center, Inc. 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
@@ -179,4 +180,29 @@ static inline uint8_t qdf_nbuf_get_rx_reo_dest_ind_or_sw_excpt(qdf_nbuf_t buf)
 {
 	return QDF_NBUF_CB_RX_PACKET_REO_DEST_IND_OR_SW_EXCPT(buf);
 }
+
+/**
+ * qdf_nbuf_get_tx_fctx() - get fctx of nbuf
+ *
+ * @buf: Network buffer
+ * Return: fctx value
+ */
+static inline void *qdf_nbuf_get_tx_fctx(qdf_nbuf_t buf)
+{
+	return NULL;
+}
+
+/**
+ * qdf_nbuf_set_tx_fctx_type() - set ftype and fctx
+ *
+ * @buf: Network buffer
+ * @ctx: address to fctx
+ * @type: ftype
+ *
+ * Return: void
+ */
+static inline void
+qdf_nbuf_set_tx_fctx_type(qdf_nbuf_t buf, void *ctx, uint8_t type)
+{
+}
 #endif /* _QDF_NBUF_M_H */