Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6cb2c309 authored by Vevek Venkatesan's avatar Vevek Venkatesan Committed by Madan Koyyalamudi
Browse files

qcacmn: add CDP reason code support for send_delba

Add CDP reason code support for sending DELBA request,
so protocol layer can make decisions for special cases.

Change-Id: I4e4b2e7f7232a8ab12d4c7838f97908f481dc787
CRs-Fixed: 2983553
parent 77519158
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -58,6 +58,17 @@ enum cdp_nac_param_cmd {
	CDP_NAC_PARAM_LIST,
};

#define CDP_DELBA_INTERVAL_MS 3000
/**
 * enum cdp_delba_rcode - CDP reason code for sending DELBA
 * @CDP_DELBA_REASON_NONE: None
 * @CDP_DELBA_2K_JUMP: Sending DELBA from 2k_jump_handle
 */
enum cdp_delba_rcode {
	CDP_DELBA_REASON_NONE = 0,
	CDP_DELBA_2K_JUMP,
};

/**
 * enum vdev_peer_protocol_enter_exit - whether ingress or egress
 * @CDP_VDEV_PEER_PROTOCOL_IS_INGRESS: ingress
@@ -1097,12 +1108,14 @@ struct ol_if_ops {
	 * @vdev_id: dp vdev id
	 * @peer_macaddr: Peer mac addr
	 * @tid: Tid number
	 * @reason_code: Reason code
	 * @cdp_rcode: CDP reason code for sending DELBA
	 *
	 * Return: 0 for success, non-zero for failure
	 */
	int (*send_delba)(struct cdp_ctrl_objmgr_psoc *psoc, uint8_t vdev_id,
			  uint8_t *peer_macaddr, uint8_t tid,
			  uint8_t reason_code);
			  uint8_t reason_code, uint8_t cdp_rcode);

	int
	(*peer_delete_multiple_wds_entries)(struct cdp_ctrl_objmgr_psoc *psoc,
+6 −3
Original line number Diff line number Diff line
@@ -3257,7 +3257,8 @@ static void dp_teardown_256_ba_sessions(struct dp_peer *peer)
							peer->vdev->pdev->soc->ctrl_psoc,
							peer->vdev->vdev_id,
							peer->mac_addr.raw,
							tid, delba_rcode);
							tid, delba_rcode,
							CDP_DELBA_REASON_NONE);
				} else {
					qdf_spin_unlock_bh(&rx_tid->tid_lock);
				}
@@ -3688,7 +3689,8 @@ int dp_delba_tx_completion_wifi3(struct cdp_soc_t *cdp_soc, uint8_t *peer_mac,
					peer->vdev->pdev->soc->ctrl_psoc,
					peer->vdev->vdev_id,
					peer->mac_addr.raw, tid,
					rx_tid->delba_rcode);
					rx_tid->delba_rcode,
					CDP_DELBA_REASON_NONE);
		}
		goto end;
	} else {
@@ -4075,7 +4077,8 @@ dp_rx_delba_ind_handler(void *soc_handle, uint16_t peer_id,
					peer->vdev->vdev_id,
					peer->mac_addr.raw,
					tid,
					rx_tid->delba_rcode);
					rx_tid->delba_rcode,
					CDP_DELBA_REASON_NONE);
		}
	} else {
		QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
+2 −1
Original line number Diff line number Diff line
@@ -981,7 +981,8 @@ dp_2k_jump_handle(struct dp_soc *soc,
					peer->vdev->vdev_id,
					peer->mac_addr.raw,
					tid,
					rx_tid->delba_rcode);
					rx_tid->delba_rcode,
					CDP_DELBA_2K_JUMP);
		}
	} else {
		qdf_spin_unlock_bh(&rx_tid->tid_lock);