浏览代码

qcacld-3.0: Store roam band mask value in disconnected state

Currently, if the host receives the SETROAMBAND command in a
disconnected state, then the host returns an error to userspace.
As per the new requirement, the Host should store the value of
roam band mask irrespective of the connection state.

Change-Id: If1d59a35b04da5e4b66830803af619833e029af2
CRs-Fixed: 3076810
abhinav kumar 3 年之前
父节点
当前提交
30a27c86e5
共有 1 个文件被更改,包括 12 次插入11 次删除
  1. 12 11
      core/hdd/src/wlan_hdd_cfg80211.c

+ 12 - 11
core/hdd/src/wlan_hdd_cfg80211.c

@@ -5362,20 +5362,21 @@ hdd_set_roam_with_control_config(struct hdd_context *hdd_ctx,
 			return -EINVAL;
 		}
 
-		if (!ucfg_cm_is_change_in_band_allowed(hdd_ctx->psoc, vdev_id,
-						       band_mask))
-			return -EINVAL;
+		if (ucfg_cm_is_change_in_band_allowed(hdd_ctx->psoc, vdev_id,
+						      band_mask)) {
 
-		/* Disable roaming on Vdev before setting PCL */
-		sme_stop_roaming(hdd_ctx->mac_handle, vdev_id,
-				 REASON_DRIVER_DISABLED, RSO_SET_PCL);
+			/* Disable roaming on Vdev before setting PCL */
+			sme_stop_roaming(hdd_ctx->mac_handle, vdev_id,
+					 REASON_DRIVER_DISABLED, RSO_SET_PCL);
 
-		policy_mgr_set_pcl_for_existing_combo(hdd_ctx->psoc,
-						      PM_STA_MODE, vdev_id);
+			policy_mgr_set_pcl_for_existing_combo(hdd_ctx->psoc,
+							      PM_STA_MODE,
+							      vdev_id);
 
-		/* Enable roaming once SET pcl is done */
-		sme_start_roaming(hdd_ctx->mac_handle, vdev_id,
-				  REASON_DRIVER_ENABLED, RSO_SET_PCL);
+			/* Enable roaming once SET pcl is done */
+			sme_start_roaming(hdd_ctx->mac_handle, vdev_id,
+					  REASON_DRIVER_ENABLED, RSO_SET_PCL);
+		}
 	}
 
 	if (is_wtc_param_updated) {