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

Commit c9eae49a authored by Vinay Gannevaram's avatar Vinay Gannevaram Committed by nshrivas
Browse files

qcacmn: Fix wifi_pos_send_rsp pointer cast

Update the wifi_pos_send_rsp function pointer cast to have the
same parameters as the actual function pointer.

Change-Id: I7e9f5f9972fe96f74c76ffb0fa069a93c98db72b
CRs-fixed: 2685627
parent b4c43ae3
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@

/* Include files */
#include "wifi_pos_utils_pub.h"
#include "../src/wifi_pos_utils_i.h"

/* forward reference */
struct wlan_objmgr_psoc;
@@ -160,7 +161,7 @@ struct wifi_pos_req_msg {
 */
QDF_STATUS ucfg_wifi_pos_process_req(struct wlan_objmgr_psoc *psoc,
				     struct wifi_pos_req_msg *req,
		void (*send_rsp_cb)(uint32_t, uint32_t, uint32_t, uint8_t *));
				     wifi_pos_send_rsp_handler send_rsp_cb);

/**
 * wifi_pos_init: initializes WIFI POS component, called by dispatcher init
+1 −1
Original line number Diff line number Diff line
@@ -768,7 +768,7 @@ int wifi_pos_oem_rsp_handler(struct wlan_objmgr_psoc *psoc,
	uint32_t app_pid;
	struct wifi_pos_psoc_priv_obj *priv =
					wifi_pos_get_psoc_priv_obj(psoc);
	void (*wifi_pos_send_rsp)(uint32_t, uint32_t, uint32_t, uint8_t *);
	wifi_pos_send_rsp_handler wifi_pos_send_rsp;

	if (!priv) {
		wifi_pos_err("private object is NULL");
+2 −3
Original line number Diff line number Diff line
@@ -27,8 +27,7 @@

QDF_STATUS ucfg_wifi_pos_process_req(struct wlan_objmgr_psoc *psoc,
				     struct wifi_pos_req_msg *req,
		void (*send_rsp_cb)(uint32_t, enum wifi_pos_cmd_ids,
		uint32_t, uint8_t *))
				     wifi_pos_send_rsp_handler send_rsp_cb)
{
	uint8_t err;
	uint32_t app_pid;
+3 −3
Original line number Diff line number Diff line
/*
 * Copyright (c) 2017 The Linux Foundation. All rights reserved.
 * Copyright (c) 2017, 2020 The Linux Foundation. All rights reserved.
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
@@ -42,6 +42,6 @@ struct wifi_pos_req_msg;
 */
QDF_STATUS ucfg_wifi_pos_process_req(struct wlan_objmgr_psoc *psoc,
				     struct wifi_pos_req_msg *req,
		void (*send_rsp_cb)(uint32_t, uint32_t, uint32_t, uint8_t *));
				     wifi_pos_send_rsp_handler send_rsp_cb);

#endif /* _WIFI_POS_UCFG_H_ */
+4 −2
Original line number Diff line number Diff line
@@ -207,6 +207,9 @@ struct wifi_pos_dma_rings_cfg {
	void *srng;
};

typedef void (*wifi_pos_send_rsp_handler)(uint32_t, enum wifi_pos_cmd_ids,
					  uint32_t, uint8_t *);

/**
 * struct wifi_pos_psoc_priv_obj - psoc obj data for wifi_pos
 * @app_pid: pid of app registered to host driver
@@ -278,8 +281,7 @@ struct wifi_pos_psoc_priv_obj {
	bool oem_6g_support_disable;
	QDF_STATUS (*wifi_pos_req_handler)(struct wlan_objmgr_psoc *psoc,
				    struct wifi_pos_req_msg *req);
	void (*wifi_pos_send_rsp)(uint32_t, enum wifi_pos_cmd_ids,
				  uint32_t, uint8_t *);
	wifi_pos_send_rsp_handler wifi_pos_send_rsp;
	void (*wifi_pos_get_phy_mode)(uint8_t, uint32_t, uint32_t *);
	void (*wifi_pos_get_fw_phy_mode_for_freq)(uint32_t, uint32_t,
						  uint32_t *);