|
@@ -165,7 +165,7 @@ void tdls_discovery_timeout_peer_cb(void *user_data)
|
|
|
peer = qdf_container_of(p_node, struct tdls_peer,
|
|
|
node);
|
|
|
|
|
|
- tdls_debug("Peer: " QDF_MAC_ADDR_FMT "link status %d, vdev id %d",
|
|
|
+ tdls_debug("Peer: " QDF_MAC_ADDR_FMT " link status %d, vdev id %d",
|
|
|
QDF_MAC_ADDR_REF(peer->peer_mac.bytes),
|
|
|
peer->link_status, wlan_vdev_get_id(vdev));
|
|
|
|
|
@@ -901,9 +901,10 @@ static void tdls_ct_process_connected_link(
|
|
|
*
|
|
|
* Return: None
|
|
|
*/
|
|
|
-static void tdls_ct_process_cap_supported(struct tdls_peer *curr_peer,
|
|
|
- struct tdls_vdev_priv_obj *tdls_vdev,
|
|
|
- struct tdls_soc_priv_obj *tdls_soc_obj)
|
|
|
+static void
|
|
|
+tdls_ct_process_cap_supported(struct tdls_peer *curr_peer,
|
|
|
+ struct tdls_vdev_priv_obj *tdls_vdev,
|
|
|
+ struct tdls_soc_priv_obj *tdls_soc_obj)
|
|
|
{
|
|
|
if (curr_peer->rx_pkt || curr_peer->tx_pkt)
|
|
|
tdls_debug(QDF_MAC_ADDR_FMT "link_status %d tdls_support %d tx %d rx %d rssi %d vdev %d",
|
|
@@ -915,10 +916,11 @@ static void tdls_ct_process_cap_supported(struct tdls_peer *curr_peer,
|
|
|
switch (curr_peer->link_status) {
|
|
|
case TDLS_LINK_IDLE:
|
|
|
case TDLS_LINK_DISCOVERING:
|
|
|
- if (TDLS_IS_EXTERNAL_CONTROL_ENABLED(
|
|
|
- tdls_soc_obj->tdls_configs.tdls_feature_flags) &&
|
|
|
- (!curr_peer->is_forced_peer))
|
|
|
+ if (!curr_peer->is_forced_peer &&
|
|
|
+ TDLS_IS_EXTERNAL_CONTROL_ENABLED(
|
|
|
+ tdls_soc_obj->tdls_configs.tdls_feature_flags))
|
|
|
break;
|
|
|
+
|
|
|
tdls_ct_process_idle_and_discovery(curr_peer, tdls_vdev,
|
|
|
tdls_soc_obj);
|
|
|
break;
|
|
@@ -951,7 +953,7 @@ static void tdls_ct_process_cap_unknown(struct tdls_peer *curr_peer,
|
|
|
return;
|
|
|
|
|
|
if (curr_peer->rx_pkt || curr_peer->tx_pkt)
|
|
|
- tdls_debug(QDF_MAC_ADDR_FMT "link_status %d tdls_support %d tx %d rx %d vdev %d",
|
|
|
+ tdls_debug(QDF_MAC_ADDR_FMT " link_status %d tdls_support %d tx %d rx %d vdev %d",
|
|
|
QDF_MAC_ADDR_REF(curr_peer->peer_mac.bytes),
|
|
|
curr_peer->link_status, curr_peer->tdls_support,
|
|
|
curr_peer->tx_pkt, curr_peer->rx_pkt,
|
|
@@ -971,7 +973,10 @@ static void tdls_ct_process_cap_unknown(struct tdls_peer *curr_peer,
|
|
|
if (curr_peer->is_forced_peer ||
|
|
|
curr_peer->discovery_attempt <
|
|
|
tdls_vdev->threshold_config.discovery_tries_n) {
|
|
|
- tdls_debug("TDLS UNKNOWN discover ");
|
|
|
+ tdls_debug("TDLS UNKNOWN discover num_attempts:%d num_left:%d forced_peer:%d",
|
|
|
+ curr_peer->discovery_attempt,
|
|
|
+ tdls_vdev->threshold_config.discovery_tries_n,
|
|
|
+ curr_peer->is_forced_peer);
|
|
|
tdls_vdev->curr_candidate = curr_peer;
|
|
|
tdls_implicit_send_discovery_request(tdls_vdev);
|
|
|
|
|
@@ -1027,8 +1032,8 @@ static void tdls_ct_process_handler(struct wlan_objmgr_vdev *vdev)
|
|
|
struct tdls_vdev_priv_obj *tdls_vdev_obj;
|
|
|
struct tdls_soc_priv_obj *tdls_soc_obj;
|
|
|
|
|
|
- if (QDF_STATUS_SUCCESS != tdls_get_vdev_objects(vdev, &tdls_vdev_obj,
|
|
|
- &tdls_soc_obj))
|
|
|
+ status = tdls_get_vdev_objects(vdev, &tdls_vdev_obj, &tdls_soc_obj);
|
|
|
+ if (QDF_IS_STATUS_ERROR(status))
|
|
|
return;
|
|
|
|
|
|
/* If any concurrency is detected */
|