qcacld-3.0: Converge p2p_set_mac_filter for management frame tx

In management frame TX path from userspace, the
p2p_set_mac_filter structure is used and is defined under P2P
converged macro.

Converge this p2p_set_mac_filter structure to set_rx_mac_filter
structure in qca-wifi-host-cmn to use this by all components

Change-Id: Iefcf36f8b327458b2418bd364ae84b28ca56e7f9
CRs-Fixed: 3306700
This commit is contained in:
Pragaspathi Thilagaraj
2022-10-06 12:43:21 +05:30
committed by Madan Koyyalamudi
父節點 8000145f07
當前提交 3a49e2cdfe
共有 3 個文件被更改,包括 3 次插入17 次删除

查看文件

@@ -2719,7 +2719,7 @@ p2p_process_set_rand_mac(struct p2p_set_mac_filter_req *set_filter_req)
struct wlan_objmgr_psoc *soc; struct wlan_objmgr_psoc *soc;
struct wlan_lmac_if_p2p_tx_ops *p2p_ops; struct wlan_lmac_if_p2p_tx_ops *p2p_ops;
QDF_STATUS status = QDF_STATUS_E_FAILURE; QDF_STATUS status = QDF_STATUS_E_FAILURE;
struct p2p_set_mac_filter param; struct set_rx_mac_filter param;
struct p2p_vdev_priv_obj *p2p_vdev_obj; struct p2p_vdev_priv_obj *p2p_vdev_obj;
struct wlan_objmgr_vdev *vdev; struct wlan_objmgr_vdev *vdev;

查看文件

@@ -157,20 +157,6 @@ struct p2p_mgmt_tx {
const uint8_t *buf; const uint8_t *buf;
}; };
/**
* struct p2p_set_mac_filter
* @vdev_id: Vdev id
* @mac: mac addr
* @freq: frequency
* @set: set or clear
*/
struct p2p_set_mac_filter {
uint32_t vdev_id;
uint8_t mac[QDF_MAC_ADDR_SIZE];
uint32_t freq;
bool set;
};
/** /**
* struct p2p_set_mac_filter_evt * struct p2p_set_mac_filter_evt
* @vdev_id: Vdev id * @vdev_id: Vdev id

查看文件

@@ -444,7 +444,7 @@ static QDF_STATUS target_if_p2p_register_macaddr_rx_filter_evt_handler(
} }
static QDF_STATUS target_if_p2p_set_mac_addr_rx_filter_cmd( static QDF_STATUS target_if_p2p_set_mac_addr_rx_filter_cmd(
struct wlan_objmgr_psoc *psoc, struct p2p_set_mac_filter *param) struct wlan_objmgr_psoc *psoc, struct set_rx_mac_filter *param)
{ {
wmi_unified_t wmi_handle = lmac_get_wmi_unified_hdl(psoc); wmi_unified_t wmi_handle = lmac_get_wmi_unified_hdl(psoc);
@@ -453,7 +453,7 @@ static QDF_STATUS target_if_p2p_set_mac_addr_rx_filter_cmd(
return QDF_STATUS_E_INVAL; return QDF_STATUS_E_INVAL;
} }
return wmi_send_set_mac_addr_rx_filter_cmd(wmi_handle, param); return wmi_unified_set_mac_addr_rx_filter(wmi_handle, param);
} }
void target_if_p2p_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops) void target_if_p2p_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops)