qcacmn: Disallow Dualband MCC

For non DBS capable chip, to disallow dualband MCC
in case dnbs vdev exist.

Change-Id: Iee96e12dbb09e2d4633ca2fb73b5fb8bf155bd66
CRs-Fixed: 2164835
This commit is contained in:
Liangwei Dong 2017-12-28 00:34:42 -05:00 • committed by snandini
commit 76659b0055

View file

@ -2561,8 +2561,10 @@ QDF_STATUS policy_mgr_is_chan_ok_for_dnbs(struct wlan_objmgr_psoc *psoc,
* return true.
* If channel is different from operating channel but in same band.
* return false.
* If operating channel in different band.
* If operating channel in different band (DBS capable).
* return true.
* If operating channel in different band (not DBS capable).
* return false.
*/
/* TODO: To be enhanced for SBS */
if (policy_mgr_is_dnsc_set(vdev)) {
@ -2577,12 +2579,24 @@ QDF_STATUS policy_mgr_is_chan_ok_for_dnbs(struct wlan_objmgr_psoc *psoc,
wlan_objmgr_vdev_release_ref(vdev,
WLAN_POLICY_MGR_ID);
break;
} else if (policy_mgr_is_hw_dbs_capable(psoc)) {
*ok = true;
wlan_objmgr_vdev_release_ref(vdev,
WLAN_POLICY_MGR_ID);
break;
} else {
*ok = false;
wlan_objmgr_vdev_release_ref(vdev,
WLAN_POLICY_MGR_ID);
break;
}
} else {
*ok = true;
}
wlan_objmgr_vdev_release_ref(vdev, WLAN_POLICY_MGR_ID);
}
policy_mgr_debug("chan: %d ok %d", channel, *ok);
return QDF_STATUS_SUCCESS;
}