|
@@ -295,7 +295,8 @@ void wlan_hdd_tdls_disable_offchan_and_teardown_links(hdd_context_t *hddctx)
|
|
|
hdd_roam_deregister_tdlssta(adapter,
|
|
|
hddctx->tdlsConnInfo[staidx].staId);
|
|
|
wlan_hdd_tdls_decrement_peer_count(adapter);
|
|
|
- hddctx->tdlsConnInfo[staidx].staId = 0;
|
|
|
+ hddctx->tdlsConnInfo[staidx].staId =
|
|
|
+ OL_TXRX_INVALID_TDLS_PEER_ID;
|
|
|
hddctx->tdlsConnInfo[staidx].sessionId = 255;
|
|
|
|
|
|
qdf_mem_zero(&hddctx->tdlsConnInfo[staidx].peerMac,
|
|
@@ -639,7 +640,7 @@ static void wlan_hdd_tdls_del_non_forced_peers(tdlsCtx_t *hdd_tdls_ctx)
|
|
|
} else {
|
|
|
peer->link_status = eTDLS_LINK_IDLE;
|
|
|
peer->reason = eTDLS_LINK_UNSPECIFIED;
|
|
|
- peer->staId = 0;
|
|
|
+ peer->staId = OL_TXRX_INVALID_TDLS_PEER_ID;
|
|
|
peer->discovery_attempt = 0;
|
|
|
}
|
|
|
}
|
|
@@ -1023,6 +1024,7 @@ hddTdlsPeer_t *wlan_hdd_tdls_get_peer(hdd_adapter_t *pAdapter, const u8 *mac)
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
+ peer->staId = 0xff;
|
|
|
pHddTdlsCtx = WLAN_HDD_GET_TDLS_CTX_PTR(pAdapter);
|
|
|
|
|
|
if (NULL == pHddTdlsCtx) {
|
|
@@ -2402,7 +2404,7 @@ int wlan_hdd_tdls_reset_peer(hdd_adapter_t *pAdapter, const uint8_t *mac)
|
|
|
wlan_hdd_tdls_set_peer_link_status(curr_peer,
|
|
|
eTDLS_LINK_IDLE,
|
|
|
eTDLS_LINK_UNSPECIFIED);
|
|
|
- curr_peer->staId = 0;
|
|
|
+ curr_peer->staId = OL_TXRX_INVALID_TDLS_PEER_ID;
|
|
|
ret_status:
|
|
|
return status;
|
|
|
}
|