Browse Source

qcacmn: Fix compile implicit conversion from enumeration type error

Error: implicit conversion from enumeration type
'enum wlan_umac_comp_id' to different enumeration type
 'wlan_objmgr_ref_dbgid' [-Werror,-Wenum-conversion]

Change-Id: I641c1eee77e977547841cebb4fd2fef8c06ca18c
CRs-Fixed: 2271058
Jianmin Zhu 6 years ago
parent
commit
143f083967
2 changed files with 3 additions and 3 deletions
  1. 1 1
      os_if/linux/nan/src/os_if_nan.c
  2. 2 2
      umac/nan/core/src/nan_api.c

+ 1 - 1
os_if/linux/nan/src/os_if_nan.c

@@ -240,7 +240,7 @@ static int os_if_nan_process_ndi_delete(struct wlan_objmgr_psoc *psoc,
 	/* delete all peer for this interface first */
 	wlan_objmgr_iterate_obj_list(psoc, WLAN_PEER_OP,
 				     os_if_nan_vdev_delete_peer,
-				     nan_vdev, 1, WLAN_UMAC_COMP_NAN);
+				     nan_vdev, 1, WLAN_NAN_ID);
 
 	/*
 	 * wlan_util_get_vdev_by_ifname increments ref count

+ 2 - 2
umac/nan/core/src/nan_api.c

@@ -112,11 +112,11 @@ static QDF_STATUS nan_psoc_obj_destroyed_notification(
 
 	wlan_objmgr_iterate_obj_list(psoc, WLAN_PEER_OP,
 				     nan_psoc_delete_peer,
-				     NULL, 1, WLAN_UMAC_COMP_NAN);
+				     NULL, 1, WLAN_NAN_ID);
 
 	wlan_objmgr_iterate_obj_list(psoc, WLAN_VDEV_OP,
 				     nan_psoc_delete_vdev,
-				     NULL, 1, WLAN_UMAC_COMP_NAN);
+				     NULL, 1, WLAN_NAN_ID);
 
 	status = wlan_objmgr_psoc_component_obj_detach(psoc,
 					WLAN_UMAC_COMP_NAN, nan_obj);