summaryrefslogtreecommitdiff
path: root/hif
diff options
context:
space:
mode:
authorYun park <yunp@codeaurora.org>2017-10-06 15:33:36 -0700
committersnandini <snandini@codeaurora.org>2017-11-10 00:27:49 -0800
commitc80eea7fcc5152100da4268200a4c335e168b8a0 (patch)
tree826ca31437fd348f6738974edaef823ab24de406 /hif
parenta5685dec529c4f866d952d5cf0f230c0595817f7 (diff)
downloadqca-wfi-host-cmn-c80eea7fcc5152100da4268200a4c335e168b8a0.tar.gz
qcacmn: ensure dynamic ce_count < CE_COUNT_MAX
This ensures scn->ce_count is less than CE_COUNT_MAX without having to check all the constants it could be initialized to based on device type. Change-Id: I8482b5d7c455366d69dcda2b13785b305f192b3f CRs-Fixed: 2128347
Diffstat (limited to 'hif')
-rw-r--r--hif/src/ce/ce_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hif/src/ce/ce_main.c b/hif/src/ce/ce_main.c
index d0570944a..876c4935a 100644
--- a/hif/src/ce/ce_main.c
+++ b/hif/src/ce/ce_main.c
@@ -2346,6 +2346,7 @@ void hif_ce_prepare_config(struct hif_softc *scn)
scn->ce_count = QCA_6290_CE_COUNT;
break;
}
+ QDF_BUG(scn->ce_count <= CE_COUNT_MAX);
}
/**