|
@@ -31,7 +31,8 @@ target_if_twt_en_complete_event_handler(ol_scn_t scn,
|
|
{
|
|
{
|
|
wmi_unified_t wmi_handle;
|
|
wmi_unified_t wmi_handle;
|
|
struct wlan_objmgr_psoc *psoc;
|
|
struct wlan_objmgr_psoc *psoc;
|
|
- struct wlan_lmac_if_twt_rx_ops *rx_ops;
|
|
|
|
|
|
+ struct wlan_lmac_if_rx_ops *rx_ops;
|
|
|
|
+ struct wlan_lmac_if_twt_rx_ops *twt_rx_ops;
|
|
struct twt_enable_complete_event_param event;
|
|
struct twt_enable_complete_event_param event;
|
|
QDF_STATUS status;
|
|
QDF_STATUS status;
|
|
|
|
|
|
@@ -48,9 +49,14 @@ target_if_twt_en_complete_event_handler(ol_scn_t scn,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
- rx_ops = wlan_twt_get_rx_ops(psoc);
|
|
|
|
- if (!rx_ops || !rx_ops->twt_enable_comp_cb) {
|
|
|
|
- target_if_err("TWT rx_ops is NULL");
|
|
|
|
|
|
+ rx_ops = wlan_psoc_get_lmac_if_rxops(psoc);
|
|
|
|
+ if (!rx_ops) {
|
|
|
|
+ target_if_err("rx_ops is NULL");
|
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
|
|
+ twt_rx_ops = &rx_ops->twt_rx_ops;
|
|
|
|
+ if (!twt_rx_ops || !twt_rx_ops->twt_enable_comp_cb) {
|
|
|
|
+ target_if_err("TWT rx_ops comp_cb is NULL");
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -67,7 +73,7 @@ target_if_twt_en_complete_event_handler(ol_scn_t scn,
|
|
goto end;
|
|
goto end;
|
|
}
|
|
}
|
|
|
|
|
|
- status = rx_ops->twt_enable_comp_cb(psoc, &event);
|
|
|
|
|
|
+ status = twt_rx_ops->twt_enable_comp_cb(psoc, &event);
|
|
|
|
|
|
end:
|
|
end:
|
|
return qdf_status_to_os_return(status);
|
|
return qdf_status_to_os_return(status);
|
|
@@ -79,7 +85,8 @@ target_if_twt_disable_comp_event_handler(ol_scn_t scn,
|
|
{
|
|
{
|
|
wmi_unified_t wmi_handle;
|
|
wmi_unified_t wmi_handle;
|
|
struct wlan_objmgr_psoc *psoc;
|
|
struct wlan_objmgr_psoc *psoc;
|
|
- struct wlan_lmac_if_twt_rx_ops *rx_ops;
|
|
|
|
|
|
+ struct wlan_lmac_if_rx_ops *rx_ops;
|
|
|
|
+ struct wlan_lmac_if_twt_rx_ops *twt_rx_ops;
|
|
struct twt_disable_complete_event_param event;
|
|
struct twt_disable_complete_event_param event;
|
|
QDF_STATUS status;
|
|
QDF_STATUS status;
|
|
|
|
|
|
@@ -96,9 +103,14 @@ target_if_twt_disable_comp_event_handler(ol_scn_t scn,
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
- rx_ops = wlan_twt_get_rx_ops(psoc);
|
|
|
|
- if (!rx_ops || !rx_ops->twt_disable_comp_cb) {
|
|
|
|
- target_if_err("TWT rx_ops is NULL");
|
|
|
|
|
|
+ rx_ops = wlan_psoc_get_lmac_if_rxops(psoc);
|
|
|
|
+ if (!rx_ops) {
|
|
|
|
+ target_if_err("rx_ops is NULL");
|
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
|
|
+ twt_rx_ops = &rx_ops->twt_rx_ops;
|
|
|
|
+ if (!twt_rx_ops || !twt_rx_ops->twt_disable_comp_cb) {
|
|
|
|
+ target_if_err("TWT rx_ops comp_cb is NULL");
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -115,7 +127,7 @@ target_if_twt_disable_comp_event_handler(ol_scn_t scn,
|
|
goto end;
|
|
goto end;
|
|
}
|
|
}
|
|
|
|
|
|
- status = rx_ops->twt_disable_comp_cb(psoc, &event);
|
|
|
|
|
|
+ status = twt_rx_ops->twt_disable_comp_cb(psoc, &event);
|
|
|
|
|
|
end:
|
|
end:
|
|
return qdf_status_to_os_return(status);
|
|
return qdf_status_to_os_return(status);
|