Quellcode durchsuchen

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 vor 2 Jahren
Ursprung
Commit
377dfe07b5
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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);