Переглянути джерело

qcacmn: Add support to view peer RSSI value in auth/assoc req pkt

Add support to view station's peer RSSI value in auth and assoc request
packet by extracting rssi from probe request and passing it down to
FW in the auth request and assoc request mgmt frames.

Change-Id: I92f714ed815ab8c77f6a6b7df3363dc96f1119bc
CRs-Fixed: 2832982
Gururaj Pandurangi 4 роки тому
батько
коміт
6c3d548d5a
2 змінених файлів з 4 додано та 0 видалено
  1. 2 0
      wmi/inc/wmi_unified_param.h
  2. 2 0
      wmi/src/wmi_unified_tlv.c

+ 2 - 0
wmi/inc/wmi_unified_param.h

@@ -1324,6 +1324,7 @@ struct tx_send_params {
  * @use_6mbps: specify whether management frame to transmit should
  * @tx_flags: additional configuration flags for mgmt frames
  *  use 6 Mbps rather than 1 Mbps min rate(for 5GHz band or P2P)
+ * @peer_rssi: peer RSSI value
  */
 struct wmi_mgmt_params {
 	void *tx_frame;
@@ -1339,6 +1340,7 @@ struct wmi_mgmt_params {
 	bool tx_params_valid;
 	uint8_t use_6mbps;
 	uint32_t tx_flags;
+	int8_t peer_rssi;
 };
 
 /**

+ 2 - 0
wmi/src/wmi_unified_tlv.c

@@ -3451,6 +3451,7 @@ static QDF_STATUS send_mgmt_cmd_tlv(wmi_unified_t wmi_handle,
 	cmd->buf_len = bufp_len;
 	cmd->tx_params_valid = param->tx_params_valid;
 	cmd->tx_flags = param->tx_flags;
+	cmd->peer_rssi = param->peer_rssi;
 
 	wmi_mgmt_cmd_record(wmi_handle, WMI_MGMT_TX_SEND_CMDID,
 			bufp, cmd->vdev_id, cmd->chanfreq);
@@ -3517,6 +3518,7 @@ static QDF_STATUS send_mgmt_cmd_tlv(wmi_unified_t wmi_handle,
 
 	cmd->desc_id = param->desc_id;
 	cmd->chanfreq = param->chanfreq;
+	cmd->peer_rssi = param->peer_rssi;
 	bufp += sizeof(wmi_mgmt_tx_send_cmd_fixed_param);
 	WMITLV_SET_HDR(bufp, WMITLV_TAG_ARRAY_BYTE, roundup(bufp_len,
 							    sizeof(uint32_t)));