|
@@ -49,22 +49,20 @@
|
|
|
static QDF_STATUS p2p_mgmt_rx_ops(struct wlan_objmgr_psoc *psoc,
|
|
|
bool isregister)
|
|
|
{
|
|
|
- struct mgmt_txrx_mgmt_frame_cb_info frm_cb_info[2];
|
|
|
+ struct mgmt_txrx_mgmt_frame_cb_info frm_cb_info;
|
|
|
QDF_STATUS status;
|
|
|
|
|
|
p2p_debug("psoc:%p, is register rx:%d", psoc, isregister);
|
|
|
|
|
|
- frm_cb_info[0].frm_type = MGMT_PROBE_REQ;
|
|
|
- frm_cb_info[0].mgmt_rx_cb = tgt_p2p_mgmt_frame_rx_cb;
|
|
|
- frm_cb_info[1].frm_type = MGMT_ACTION_VENDOR_SPECIFIC;
|
|
|
- frm_cb_info[1].mgmt_rx_cb = tgt_p2p_mgmt_frame_rx_cb;
|
|
|
+ frm_cb_info.frm_type = MGMT_PROBE_REQ;
|
|
|
+ frm_cb_info.mgmt_rx_cb = tgt_p2p_mgmt_frame_rx_cb;
|
|
|
|
|
|
if (isregister)
|
|
|
status = wlan_mgmt_txrx_register_rx_cb(psoc,
|
|
|
- WLAN_UMAC_COMP_P2P, frm_cb_info, 2);
|
|
|
+ WLAN_UMAC_COMP_P2P, &frm_cb_info, 1);
|
|
|
else
|
|
|
status = wlan_mgmt_txrx_deregister_rx_cb(psoc,
|
|
|
- WLAN_UMAC_COMP_P2P, frm_cb_info, 2);
|
|
|
+ WLAN_UMAC_COMP_P2P, &frm_cb_info, 1);
|
|
|
|
|
|
return status;
|
|
|
}
|
|
@@ -544,6 +542,27 @@ static QDF_STATUS p2p_process_scan_complete_evt(
|
|
|
return status;
|
|
|
}
|
|
|
|
|
|
+QDF_STATUS p2p_mgmt_rx_action_ops(struct wlan_objmgr_psoc *psoc,
|
|
|
+ bool isregister)
|
|
|
+{
|
|
|
+ struct mgmt_txrx_mgmt_frame_cb_info frm_cb_info;
|
|
|
+ QDF_STATUS status;
|
|
|
+
|
|
|
+ p2p_debug("psoc:%p, is register rx:%d", psoc, isregister);
|
|
|
+
|
|
|
+ frm_cb_info.frm_type = MGMT_ACTION_VENDOR_SPECIFIC;
|
|
|
+ frm_cb_info.mgmt_rx_cb = tgt_p2p_mgmt_frame_rx_cb;
|
|
|
+
|
|
|
+ if (isregister)
|
|
|
+ status = wlan_mgmt_txrx_register_rx_cb(psoc,
|
|
|
+ WLAN_UMAC_COMP_P2P, &frm_cb_info, 1);
|
|
|
+ else
|
|
|
+ status = wlan_mgmt_txrx_deregister_rx_cb(psoc,
|
|
|
+ WLAN_UMAC_COMP_P2P, &frm_cb_info, 1);
|
|
|
+
|
|
|
+ return status;
|
|
|
+}
|
|
|
+
|
|
|
struct p2p_roc_context *p2p_find_current_roc_ctx(
|
|
|
struct p2p_soc_priv_obj *p2p_soc_obj)
|
|
|
{
|