浏览代码

qcacld-3.0: Send hang event without wdev interface

Currently hang event is passed using the STA wdev interface which is
not correct as this hang event is at psoc level.
Also, vendor lib needs to take action for ll_sap on this hang event.
But since this event is passed with sta wdev, vendor lib drops this
event and no action is taken for ll sap.

To resolve this issue, send the hang event without any wdev interface.

CRs-Fixed: 3498378
Change-Id: I60537d6eabb0310608d75809462ab1f019949669
Sachin Ahuja 1 年之前
父节点
当前提交
bef7808b83
共有 1 个文件被更改,包括 1 次插入7 次删除
  1. 1 7
      core/hdd/src/wlan_hdd_cfg80211.c

+ 1 - 7
core/hdd/src/wlan_hdd_cfg80211.c

@@ -1397,8 +1397,6 @@ int wlan_hdd_send_hang_reason_event(struct hdd_context *hdd_ctx,
 {
 	struct sk_buff *vendor_event;
 	enum qca_wlan_vendor_hang_reason hang_reason;
-	struct hdd_adapter *sta_adapter;
-	struct wireless_dev *wdev = NULL;
 
 	hdd_enter();
 
@@ -1407,12 +1405,8 @@ int wlan_hdd_send_hang_reason_event(struct hdd_context *hdd_ctx,
 		return -EINVAL;
 	}
 
-	sta_adapter = hdd_get_adapter(hdd_ctx, QDF_STA_MODE);
-	if (sta_adapter)
-		wdev = &(sta_adapter->wdev);
-
 	vendor_event = wlan_cfg80211_vendor_event_alloc(hdd_ctx->wiphy,
-							wdev,
+							NULL,
 							sizeof(uint32_t) +
 							data_len,
 							HANG_REASON_INDEX,