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
This commit is contained in:
Yun park 2017-10-06 15:33:36 -07:00 • committed by snandini
commit c80eea7fcc

View file

@ -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);
}
/**