qcacmn: Handle no common channel between PCL and the favorite channel list
Handle the scenario where no common channel between PCL & the favorite channel list is found. Change-Id: I560d7ef861d89f3f4a0c63afacd0ffbf6aaa976e CRs-Fixed: 2063060
This commit is contained in:

committed by
snandini

parent
4980f3c81c
commit
95e7e27147
@@ -1571,10 +1571,13 @@ QDF_STATUS policy_mgr_get_sap_mandatory_channel(struct wlan_objmgr_psoc *psoc,
|
||||
return status;
|
||||
}
|
||||
|
||||
/* No existing SAP connection and hence a new SAP connection might be
|
||||
* coming up.
|
||||
/*
|
||||
* Get inside below loop if no existing SAP connection and hence a new
|
||||
* SAP connection might be coming up. pcl.pcl_len can be 0 if no common
|
||||
* channel between PCL & mandatory channel list as well
|
||||
*/
|
||||
if (!pcl.pcl_len) {
|
||||
if (!pcl.pcl_len && !policy_mgr_mode_specific_connection_count(psoc,
|
||||
PM_SAP_MODE, NULL)) {
|
||||
policy_mgr_debug("policy_mgr_get_pcl_for_existing_conn returned no pcl");
|
||||
status = policy_mgr_get_pcl(psoc, PM_SAP_MODE,
|
||||
pcl.pcl_list, &pcl.pcl_len,
|
||||
@@ -1595,6 +1598,11 @@ QDF_STATUS policy_mgr_get_sap_mandatory_channel(struct wlan_objmgr_psoc *psoc,
|
||||
return status;
|
||||
}
|
||||
|
||||
if (!pcl.pcl_len) {
|
||||
policy_mgr_err("No common channel between mandatory list & PCL");
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
*chan = pcl.pcl_list[0];
|
||||
policy_mgr_debug("mandatory channel:%d", *chan);
|
||||
|
||||
|
Reference in New Issue
Block a user