From d3eb8bcff831de5674d85b3dbe0eb87b1d292361 Mon Sep 17 00:00:00 2001 From: Krunal Soni Date: Mon, 12 Nov 2018 19:06:15 -0800 Subject: [PATCH] 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 --- dp/wifi3.0/dp_peer.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/dp/wifi3.0/dp_peer.c b/dp/wifi3.0/dp_peer.c index 0e27da2d5a37..a28cc3e4d6a2 100644 --- a/dp/wifi3.0/dp_peer.c +++ b/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];