From 1113c5b6494f1e157c30979c9621a556052e5eac Mon Sep 17 00:00:00 2001 From: Frank Liu Date: Tue, 26 Jun 2018 15:21:30 +0800 Subject: [PATCH] qcacmn: Initialize tdls peer sta_id TDLS sta_id check logic has changed, the value zero is valid, so initialize the tdls peer sta_id as 0xff, otherwise add tdls peer won't happen. Change-Id: I805e4abdec8806f649d15da4f02980de9ffdc0ea CRs-Fixed: 2263523 --- umac/tdls/core/src/wlan_tdls_peer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/umac/tdls/core/src/wlan_tdls_peer.c b/umac/tdls/core/src/wlan_tdls_peer.c index b761646d0c..82ecb43d32 100644 --- a/umac/tdls/core/src/wlan_tdls_peer.c +++ b/umac/tdls/core/src/wlan_tdls_peer.c @@ -185,6 +185,7 @@ static struct tdls_peer *tdls_add_peer(struct tdls_vdev_priv_obj *vdev_obj, tdls_find_opclass(soc_obj->soc, peer->pref_off_chan_num, soc_obj->tdls_configs.tdls_pre_off_chan_bw); + peer->sta_id = INVALID_TDLS_PEER_ID; qdf_list_insert_back(head, &peer->node);