Explorar o código

qcacmn: Initialize the peer state after creating the peer

Initialize the peer state to disconnected(OL_TXRX_PEER_STATE_DISC)
after creating the peer. This will also help in roaming case not
to send a vdev up again to the firmware, since the legacy code
checks for this initial state of the peer.

Change-Id: I5b5a664a81c1e295e405c648c1124e9ac844c9cb
CRs-Fixed: 2150449
Varun Reddy Yeturu %!s(int64=7) %!d(string=hai) anos
pai
achega
b9ec57ef65
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      dp/wifi3.0/dp_main.c

+ 3 - 0
dp/wifi3.0/dp_main.c

@@ -2941,6 +2941,9 @@ static void *dp_peer_create_wifi3(struct cdp_vdev *vdev_handle,
 	/* TODO: See if hash based search is required */
 	dp_peer_find_hash_add(soc, peer);
 
+	/* Initialize the peer state */
+	peer->state = OL_TXRX_PEER_STATE_DISC;
+
 	QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_INFO_HIGH,
 		"vdev %pK created peer %pK (%pM) ref_cnt: %d",
 		vdev, peer, peer->mac_addr.raw,