mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Fix MDM compilation errors
Fix compilation errors in MDM features and when compiled against MDM kernel Change-Id: Iee8fb5f88bfff22117e087f8879d4caf50a945c1 CRs-fixed: 952116
This commit is contained in:
parent
bb8583d4ce
commit
aa9459f319
5 changed files with 23 additions and 18 deletions
|
|
@ -49,6 +49,11 @@
|
|||
#define IEEE80211_CHAN_NO_IBSS IEEE80211_CHAN_NO_IR
|
||||
#endif
|
||||
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(3, 16, 0))
|
||||
#define IEEE80211_CHAN_NO_20MHZ (1<<11)
|
||||
#define IEEE80211_CHAN_NO_10MHZ (1<<12)
|
||||
#endif
|
||||
|
||||
static v_REGDOMAIN_t temp_reg_domain = REGDOMAIN_COUNT;
|
||||
|
||||
/* true if init happens thru init time driver hint */
|
||||
|
|
|
|||
|
|
@ -615,14 +615,6 @@ static const struct wiphy_wowlan_support wowlan_support_cfg80211_init = {
|
|||
};
|
||||
#endif
|
||||
|
||||
#ifdef FEATURE_WLAN_TDLS
|
||||
|
||||
/* TDLS capabilities params */
|
||||
#define PARAM_MAX_TDLS_SESSION \
|
||||
QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS
|
||||
#define PARAM_TDLS_FEATURE_SUPPORT \
|
||||
QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED
|
||||
|
||||
/**
|
||||
* hdd_add_channel_switch_support()- Adds Channel Switch flag if supported
|
||||
* @flags: Pointer to the flags to Add channel switch flag.
|
||||
|
|
@ -644,6 +636,14 @@ static inline void hdd_add_channel_switch_support(uint32_t *flags)
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef FEATURE_WLAN_TDLS
|
||||
|
||||
/* TDLS capabilities params */
|
||||
#define PARAM_MAX_TDLS_SESSION \
|
||||
QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS
|
||||
#define PARAM_TDLS_FEATURE_SUPPORT \
|
||||
QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED
|
||||
|
||||
/**
|
||||
* __wlan_hdd_cfg80211_get_tdls_capabilities() - Provide TDLS Capabilites.
|
||||
* @wiphy: WIPHY structure pointer
|
||||
|
|
|
|||
|
|
@ -1403,19 +1403,19 @@ static void hdd_ipa_uc_op_cb(struct op_msg_type *op_msg, void *usr_ctxt)
|
|||
"CE RING BASE: 0x%llx\n"
|
||||
"CE RING SIZE: %d\n"
|
||||
"CE REG ADDR : 0x%llx",
|
||||
hdd_ipa->ce_sr_base_paddr,
|
||||
(unsigned long long)hdd_ipa->ce_sr_base_paddr,
|
||||
hdd_ipa->ce_sr_ring_size,
|
||||
hdd_ipa->ce_reg_paddr);
|
||||
(unsigned long long)hdd_ipa->ce_reg_paddr);
|
||||
CDF_TRACE(CDF_MODULE_ID_HDD, CDF_TRACE_LEVEL_ERROR,
|
||||
"==== IPA_UC WLAN_HOST TX ====\n"
|
||||
"COMP RING BASE: 0x%llx\n"
|
||||
"COMP RING SIZE: %d\n"
|
||||
"NUM ALLOC BUF: %d\n"
|
||||
"COMP RING DBELL : 0x%llx",
|
||||
hdd_ipa->tx_comp_ring_base_paddr,
|
||||
(unsigned long long)hdd_ipa->tx_comp_ring_base_paddr,
|
||||
hdd_ipa->tx_comp_ring_size,
|
||||
hdd_ipa->tx_num_alloc_buffer,
|
||||
hdd_ipa->tx_comp_doorbell_paddr);
|
||||
(unsigned long long)hdd_ipa->tx_comp_doorbell_paddr);
|
||||
CDF_TRACE(CDF_MODULE_ID_HDD, CDF_TRACE_LEVEL_ERROR,
|
||||
"==== IPA_UC WLAN_HOST RX ====\n"
|
||||
"IND RING BASE: 0x%llx\n"
|
||||
|
|
@ -1425,13 +1425,13 @@ static void hdd_ipa_uc_op_cb(struct op_msg_type *op_msg, void *usr_ctxt)
|
|||
"NUM EXCP PKT : %llu\n"
|
||||
"NUM TX BCMC : %llu\n"
|
||||
"NUM TX BCMC ERR : %llu",
|
||||
hdd_ipa->rx_rdy_ring_base_paddr,
|
||||
(unsigned long long)hdd_ipa->rx_rdy_ring_base_paddr,
|
||||
hdd_ipa->rx_rdy_ring_size,
|
||||
hdd_ipa->rx_ready_doorbell_paddr,
|
||||
hdd_ipa->rx_proc_done_idx_paddr,
|
||||
(unsigned long long)hdd_ipa->rx_ready_doorbell_paddr,
|
||||
(unsigned long long)hdd_ipa->rx_proc_done_idx_paddr,
|
||||
hdd_ipa->stats.num_rx_excep,
|
||||
hdd_ipa->stats.num_tx_bcmc,
|
||||
hdd_ipa->stats.num_tx_bcmc_err);
|
||||
(unsigned long long)hdd_ipa->stats.num_tx_bcmc_err);
|
||||
CDF_TRACE(CDF_MODULE_ID_HDD, CDF_TRACE_LEVEL_ERROR,
|
||||
"==== IPA_UC WLAN_HOST CONTROL ====\n"
|
||||
"SAP NUM STAs: %d\n"
|
||||
|
|
|
|||
|
|
@ -612,7 +612,7 @@ static bool wlan_sap_validate_channel_switch(tHalHandle hal, uint16_t sap_ch,
|
|||
ptSapContext sap_context)
|
||||
{
|
||||
return sme_validate_sap_channel_switch(
|
||||
hHal,
|
||||
hal,
|
||||
sap_ch,
|
||||
sap_context->csr_roamProfile.phyMode,
|
||||
sap_context->cc_switch_mode,
|
||||
|
|
|
|||
|
|
@ -704,7 +704,7 @@ uint16_t csr_check_concurrent_channel_overlap(tpAniSirGlobal mac_ctx,
|
|||
CDF_SAP_MODE)) &&
|
||||
(session->connectState !=
|
||||
eCSR_ASSOC_STATE_TYPE_NOT_CONNECTED)) {
|
||||
if (pSession->ch_switch_in_progress)
|
||||
if (session->ch_switch_in_progress)
|
||||
continue;
|
||||
|
||||
csr_handle_conc_chnl_overlap_for_sap_go(mac_ctx,
|
||||
|
|
|
|||
Loading…
Reference in a new issue