mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
qcacld-3.0: Fix compile issue while WLAN_LOGGING_SOCK_SVC_ENABLE disabled
Fix compile issue while WLAN_LOGGING_SOCK_SVC_ENABLE disabled. Change-Id: If83e0172f15aa856bf02d875e35aa54bcb0b6cc5 CRs-Fixed: 2536691
This commit is contained in:
parent
4f9f13876e
commit
a053d2a304
1 changed files with 22 additions and 2 deletions
|
|
@ -2936,6 +2936,26 @@ static inline void hdd_set_tso_flags(struct hdd_context *hdd_ctx,
|
|||
}
|
||||
#endif /* FEATURE_TSO */
|
||||
|
||||
/**
|
||||
* wlan_hdd_get_host_log_nl_proto() - Get host log netlink protocol
|
||||
* @hdd_ctx: HDD context
|
||||
*
|
||||
* This function returns with host log netlink protocol settings
|
||||
*
|
||||
* Return: none
|
||||
*/
|
||||
#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
|
||||
static inline int wlan_hdd_get_host_log_nl_proto(struct hdd_context *hdd_ctx)
|
||||
{
|
||||
return hdd_ctx->config->host_log_custom_nl_proto;
|
||||
}
|
||||
#else
|
||||
static inline int wlan_hdd_get_host_log_nl_proto(struct hdd_context *hdd_ctx)
|
||||
{
|
||||
return NETLINK_USERSOCK;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_CNSS_LOGGER
|
||||
/**
|
||||
* wlan_hdd_nl_init() - wrapper function to CNSS_LOGGER case
|
||||
|
|
@ -2954,7 +2974,7 @@ static inline int wlan_hdd_nl_init(struct hdd_context *hdd_ctx)
|
|||
{
|
||||
int proto;
|
||||
|
||||
proto = hdd_ctx->config->host_log_custom_nl_proto;
|
||||
proto = wlan_hdd_get_host_log_nl_proto(hdd_ctx);
|
||||
hdd_ctx->radio_index = nl_srv_init(hdd_ctx->wiphy, proto);
|
||||
|
||||
/* radio_index is assigned from 0, so only >=0 will be valid index */
|
||||
|
|
@ -2977,7 +2997,7 @@ static inline int wlan_hdd_nl_init(struct hdd_context *hdd_ctx)
|
|||
{
|
||||
int proto;
|
||||
|
||||
proto = hdd_ctx->config->host_log_custom_nl_proto;
|
||||
proto = wlan_hdd_get_host_log_nl_proto(hdd_ctx);
|
||||
return nl_srv_init(hdd_ctx->wiphy, proto);
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue