Browse Source

qcacld-3.0: Add northbound link reconfig notification

When link removal TBTT expires, indicate the link removal
info to upper layer by vendor event.

Change-Id: Iccc13898f76648bfa2167669c966538d95df5fe3
CRs-Fixed: 3482159
Liangwei Dong 2 years ago
parent
commit
e563cf7379

+ 12 - 0
components/mlme/core/src/wlan_mlme_vdev_mgr_interface.c

@@ -1837,12 +1837,24 @@ vdevmgr_vdev_peer_delete_all_rsp_handle(struct vdev_mlme_obj *vdev_mlme,
 static QDF_STATUS vdevmgr_reconfig_req_cb(struct scheduler_msg *msg)
 {
 	struct wlan_objmgr_vdev *vdev = msg->bodyptr;
+	struct wlan_objmgr_psoc *psoc;
+	uint8_t vdev_id;
 
 	if (!vdev) {
 		mlme_err("vdev null");
 		return QDF_STATUS_E_INVAL;
 	}
 
+	psoc = wlan_vdev_get_psoc(vdev);
+	if (!psoc) {
+		mlme_err("Failed to get psoc");
+		return QDF_STATUS_E_INVAL;
+	}
+
+	vdev_id = wlan_vdev_get_id(vdev);
+	if (!wlan_get_vdev_link_removed_flag_by_vdev_id(psoc, vdev_id))
+		mlme_cm_osif_link_reconfig_notify(vdev);
+
 	policy_mgr_handle_link_removal_on_vdev(vdev);
 	mlo_sta_stop_reconfig_timer_by_vdev(vdev);
 

+ 6 - 0
core/hdd/src/wlan_hdd_cfg80211.c

@@ -1954,6 +1954,12 @@ static const struct nl80211_vendor_cmd_info wlan_hdd_cfg80211_vendor_events[] =
 #endif
 	FEATURE_GREEN_AP_LOW_LATENCY_PWR_SAVE_EVENT
 	FEATURE_ROAM_STATS_EVENTS
+#ifdef WLAN_FEATURE_11BE_MLO
+	[QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG_INDEX] = {
+		.vendor_id = QCA_NL80211_VENDOR_ID,
+		.subcmd = QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG,
+	},
+#endif
 };
 
 /**