소스 검색

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 2 년 전
부모
커밋
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,