qcacld-3.0: Fix DSRC compile error

DSRC feature is enabled by SDIO card profile. But when debug SDIO
interface feautre, there are many DSRC module compile issue.

Change-Id: I4429f2a6e68b67140a72ad9634031f459ccda397
CRs-Fixed: 2590115
This commit is contained in:
Yu Ouyang 2019-12-18 16:46:39 +08:00 • committed by nshrivas
commit e2ed521f0c
5 changed files with 7 additions and 4 deletions

View file

@ -160,7 +160,7 @@ static QDF_STATUS ocb_channel_config_status(struct ocb_rx_event *evt)
/* Sync channel status to data path */
if (config_rsp.status == OCB_CHANNEL_CONFIG_SUCCESS)
ocb_set_chan_info(ocb_obj->dp_soc,
ocb_obj->dp_pdev,
ocb_obj->pdev,
vdev_id,
ocb_obj->channel_config);
qdf_mem_free(ocb_obj->channel_config);

View file

@ -23,6 +23,7 @@
#ifndef _WLAN_OCB_STRUCTS_H_
#define _WLAN_OCB_STRUCTS_H_
#include <qdf_status.h>
#include "qca_vendor.h"
/* Don't add the RX stats header to packets received on this channel */
#define OCB_CHANNEL_FLAG_DISABLE_RX_STATS_HDR (1 << 0)

View file

@ -22,6 +22,7 @@
#include <scheduler_api.h>
#include <wlan_defs.h>
#include <wlan_objmgr_pdev_obj.h>
#include <wlan_reg_services_api.h>
#include <wlan_objmgr_psoc_obj.h>
#include <wlan_objmgr_global_obj.h>
@ -279,7 +280,7 @@ QDF_STATUS ucfg_ocb_set_channel_config(struct wlan_objmgr_vdev *vdev,
ocb_cbs->ocb_set_config_context = arg;
state = wlan_vdev_mlme_get_state(vdev);
if (state != WLAN_VDEV_S_RUN) {
if (state != WLAN_VDEV_S_START) {
/* Vdev is not started, start it */
ocb_debug("OCB vdev%d is not up", config->vdev_id);
status = ocb_vdev_start(ocb_obj);

View file

@ -216,7 +216,6 @@ static int hdd_ocb_register_sta(struct hdd_adapter *adapter)
{
QDF_STATUS qdf_status = QDF_STATUS_E_FAILURE;
struct ol_txrx_desc_type sta_desc = {0};
struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
struct hdd_station_ctx *sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
struct ol_txrx_ops txrx_ops;
void *soc = cds_get_context(QDF_MODULE_ID_SOC);
@ -1941,7 +1940,7 @@ static int __wlan_hdd_cfg80211_dcc_update_ndl(struct wiphy *wiphy,
tb[QCA_WLAN_VENDOR_ATTR_DCC_UPDATE_NDL_ACTIVE_STATE_ARRAY]);
/* Check channel count. Per 11p spec, max 2 channels allowed */
if (!channel_count || channel_count > TGT_NUM_OCB_CHANNELS) {
if (!channel_count || channel_count > CFG_TGT_NUM_OCB_CHANNELS) {
hdd_err("Invalid channel_count %d", channel_count);
return -EINVAL;
}

View file

@ -26,6 +26,8 @@
#include "cds_utils.h"
#include "cds_api.h"
#include "wlan_ocb_ucfg_api.h"
#include "lim_utils.h"
#include "../../core/src/vdev_mgr_ops.h"
/**
* wma_start_ocb_vdev() - start OCB vdev