浏览代码

qcacld-3.0: Update error code for TWT setup for STA disconnected state

Expected error code is not returned for TWT setup with no
associated AP. Error code has been updated to correct value.

Change-Id: I5234026410a1bcfaf1151c6b7da272a1784d3fe3
CRs-Fixed: 3181078
David Oladunjoye 2 年之前
父节点
当前提交
377dfe07b5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      os_if/twt/src/osif_twt_ext_req.c

+ 1 - 1
os_if/twt/src/osif_twt_ext_req.c

@@ -403,7 +403,7 @@ int osif_fill_peer_macaddr(struct wlan_objmgr_vdev *vdev, uint8_t *mac_addr)
 	peer = wlan_objmgr_vdev_try_get_bsspeer(vdev, WLAN_TWT_ID);
 	if (!peer) {
 		osif_err("peer is null");
-		return -EINVAL;
+		return -EAGAIN;
 	}
 	wlan_peer_obj_lock(peer);
 	qdf_mem_copy(mac_addr, wlan_peer_get_macaddr(peer), QDF_MAC_ADDR_SIZE);