Explorar el Código

qcacld-3.0: Check 11be supported before send MLO roam config

Add check 11be supported before send the MLO roam config wmi
command by API wlan_psoc_mlme_get_11be_capab.

Change-Id: I101e2c614efd44c7eabac0f45dc558e044185b6b
CRs-Fixed: 3305746
Liangwei Dong hace 2 años
padre
commit
da0b340655

+ 5 - 2
components/target_if/connection_mgr/src/target_if_cm_roam_offload.c

@@ -32,6 +32,7 @@
 #include <target_if_vdev_mgr_tx_ops.h>
 #include "target_if_cm_roam_event.h"
 #include <target_if_psoc_wake_lock.h>
+#include "wlan_psoc_mlme_api.h"
 
 static struct wmi_unified
 *target_if_cm_roam_get_wmi_handle_from_vdev(struct wlan_objmgr_vdev *vdev)
@@ -1172,6 +1173,7 @@ target_if_cm_roam_send_start(struct wlan_objmgr_vdev *vdev,
 	struct wlan_objmgr_psoc *psoc;
 	uint8_t vdev_id;
 	bool bss_load_enabled;
+	bool eht_capab = false;
 
 	wmi_handle = target_if_cm_roam_get_wmi_handle_from_vdev(vdev);
 	if (!wmi_handle)
@@ -1299,8 +1301,9 @@ target_if_cm_roam_send_start(struct wlan_objmgr_vdev *vdev,
 
 	target_if_cm_roam_idle_params(wmi_handle, ROAM_SCAN_OFFLOAD_START,
 				      &req->idle_params);
-
-	target_if_cm_roam_send_mlo_config(vdev, &req->roam_mlo_params);
+	wlan_psoc_mlme_get_11be_capab(psoc, &eht_capab);
+	if (eht_capab)
+		target_if_cm_roam_send_mlo_config(vdev, &req->roam_mlo_params);
 
 	vdev_id = wlan_vdev_get_id(vdev);
 	if (req->wlan_roam_rt_stats_config)