qcacld-3.0: Add sanity check for bmiss configuration from vendor cmd
Add sanity check for bmiss configuration from vendor cmd: the device mode shall be station mode, the final beacon miss value can't exceed ini max setting, vdev_id shall correspond to the interface from vendor cmd. Change-Id: I7ecdd40f69a8317ccd5362adbcad1159b1792ab7 CRs-Fixed: 2990863
This commit is contained in:
@@ -816,6 +816,25 @@ ucfg_mlme_get_roam_bmiss_final_bcnt(struct wlan_objmgr_psoc *psoc,
|
||||
return wlan_mlme_get_roam_bmiss_final_bcnt(psoc, val);
|
||||
}
|
||||
|
||||
bool
|
||||
ucfg_mlme_validate_roam_bmiss_final_bcnt(uint32_t bmiss_final_bcnt)
|
||||
{
|
||||
bool is_valid = true;
|
||||
uint32_t min, max;
|
||||
|
||||
if (!cfg_in_range(CFG_LFR_ROAM_BMISS_FINAL_BCNT,
|
||||
bmiss_final_bcnt)) {
|
||||
min = (cfg_min(CFG_LFR_ROAM_BMISS_FINAL_BCNT));
|
||||
max = (cfg_max(CFG_LFR_ROAM_BMISS_FINAL_BCNT));
|
||||
mlme_legacy_err("bmiss final bcnt %d is out of range "
|
||||
"(Min: %d Max: %d)",
|
||||
bmiss_final_bcnt, min, max);
|
||||
is_valid = false;
|
||||
}
|
||||
|
||||
return is_valid;
|
||||
}
|
||||
|
||||
bool ucfg_mlme_get_dual_sta_roaming_enabled(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
return wlan_mlme_get_dual_sta_roaming_enabled(psoc);
|
||||
|
Reference in New Issue
Block a user