qcacmn: Add support for 11az RTT

- target_if layer was calling UMAC layer wifi_pos_get_rx_ops(). This was
  leading to compilation errror in WIN platform. Hence, added target_if
  layer API target_if_wifi_pos_get_rx_ops().

- WMI_RX_SERIALIZER_CTX is used to register PASN peer create and delete.
  WIN platform does not use the above context. Hence, use WMI_RX_UMAC_CTX
  for WIN and WMI_RX_SERIALIZER_CTX for MCC.

- WIFI_POS rx_ops callbacks are registered in target_if layer. But, these
  callbacks are called by UMAC component. Hence, move this registration
  function to UMAC layer.

- Add an API to convert host PASN peer type value to target defined value.

Change-Id: I2a262121f959c2343e88158b94468d104b9e164c
CRs-Fixed: 3289852
このコミットが含まれているのは:
Shashikala Prabhu
2022-09-27 14:18:04 +05:30
committed by Madan Koyyalamudi
コミット 5e43636b8c
12個のファイルの変更80行の追加69行の削除

ファイルの表示

@@ -422,12 +422,10 @@ struct wlan_objmgr_psoc *wifi_pos_get_psoc(void);
/**
* wifi_pos_get_legacy_ops() - Get wifi pos legacy ops
* @psoc: PSOC pointer
*
* Return: Pointer to legacy ops
*/
struct wifi_pos_legacy_ops *
wifi_pos_get_legacy_ops(struct wlan_objmgr_psoc *psoc);
struct wifi_pos_legacy_ops *wifi_pos_get_legacy_ops(void);
/**
* wifi_pos_set_legacy_ops() - Set Wifi Pos legacy ops
@@ -651,23 +649,18 @@ wifi_pos_get_peer_private_object(struct wlan_objmgr_peer *peer);
/**
* wifi_pos_register_osif_callbacks() - Register OSIF callbacks
* @psoc: Pointer to psoc object
* @ops: Osif callbacks pointer
*
* Return: QDF_STATUS
*/
QDF_STATUS
wifi_pos_register_osif_callbacks(struct wlan_objmgr_psoc *psoc,
struct wifi_pos_osif_ops *ops);
QDF_STATUS wifi_pos_register_osif_callbacks(struct wifi_pos_osif_ops *ops);
/**
* wifi_pos_get_osif_callbacks() - Get OS IF callbacks
* @psoc: Pointer to PSOC object
*
* Return: struct wifi_pos_osif_ops pointer
*/
struct wifi_pos_osif_ops *
wifi_pos_get_osif_callbacks(struct wlan_objmgr_psoc *psoc);
struct wifi_pos_osif_ops *wifi_pos_get_osif_callbacks(void);
#endif /* WIFI_POS_CONVERGED */
#if defined(WIFI_POS_CONVERGED) && defined(WLAN_FEATURE_RTT_11AZ_SUPPORT)

ファイルの表示

@@ -61,7 +61,7 @@ static inline QDF_STATUS
ucfg_wifi_pos_register_osif_callbacks(struct wlan_objmgr_psoc *psoc,
struct wifi_pos_osif_ops *osif_ops)
{
return wifi_pos_register_osif_callbacks(psoc, osif_ops);
return wifi_pos_register_osif_callbacks(osif_ops);
}
/**
@@ -74,7 +74,7 @@ ucfg_wifi_pos_register_osif_callbacks(struct wlan_objmgr_psoc *psoc,
static inline QDF_STATUS
ucfg_wifi_pos_deregister_osif_callbacks(struct wlan_objmgr_psoc *psoc)
{
return wifi_pos_register_osif_callbacks(psoc, NULL);
return wifi_pos_register_osif_callbacks(NULL);
}
#else
static inline QDF_STATUS