瀏覽代碼

qcacmn: Initialize the PN and plumb it to HW

Initialize the PN to the value which is given by upper layer
and plumb it to HW.

Change-Id: If6b14d2b9b92e4571a85cb20dc445608d5f56961
CRs-Fixed: 2350954
Krunal Soni 6 年之前
父節點
當前提交
d3eb8bcff8
共有 1 個文件被更改,包括 6 次插入8 次删除
  1. 6 8
      dp/wifi3.0/dp_peer.c

+ 6 - 8
dp/wifi3.0/dp_peer.c

@@ -2452,14 +2452,12 @@ dp_set_pn_check_wifi3(struct cdp_vdev *vdev_handle, struct cdp_peer *peer_handle
 			params.std.addr_hi =
 				(uint64_t)(rx_tid->hw_qdesc_paddr) >> 32;
 
-			if (sec_type != cdp_sec_type_wapi) {
-				params.u.upd_queue_params.update_pn_valid = 0;
-			} else {
-				/*
-				 * Setting PN valid bit for WAPI sec_type,
-				 * since WAPI PN has to be started with
-				 * predefined value
-				 */
+			if (pn_size) {
+				QDF_TRACE(QDF_MODULE_ID_TXRX,
+					  QDF_TRACE_LEVEL_INFO_HIGH,
+					  "%s PN set for TID:%d pn:%x:%x:%x:%x",
+					  __func__, i, rx_pn[3], rx_pn[2],
+					  rx_pn[1], rx_pn[0]);
 				params.u.upd_queue_params.update_pn_valid = 1;
 				params.u.upd_queue_params.pn_31_0 = rx_pn[0];
 				params.u.upd_queue_params.pn_63_32 = rx_pn[1];