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
This commit is contained in:
Krunal Soni 2018-11-12 19:06:15 -08:00 • committed by nshrivas
commit d3eb8bcff8

View file

@ -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];