|
@@ -5554,57 +5554,6 @@ static int hdd_wlan_register_ip6_notifier(hdd_context_t *hdd_ctx)
|
|
|
}
|
|
|
#endif
|
|
|
|
|
|
-#ifdef WLAN_LOGGING_SOCK_SVC_ENABLE
|
|
|
-/**
|
|
|
- * hdd_logging_sock_activate_svc() - Activate logging
|
|
|
- * @hdd_ctx: HDD context
|
|
|
- *
|
|
|
- * Activates the logging service
|
|
|
- *
|
|
|
- * Return: Zero in case of success, negative value otherwise
|
|
|
- */
|
|
|
-static int hdd_logging_sock_activate_svc(hdd_context_t *hdd_ctx)
|
|
|
-{
|
|
|
- int ret;
|
|
|
- struct hdd_config *config = hdd_ctx->config;
|
|
|
-
|
|
|
- if (!config->wlanLoggingEnable)
|
|
|
- return 0;
|
|
|
-
|
|
|
- ret = wlan_logging_sock_activate_svc(config->wlanLoggingToConsole,
|
|
|
- config->wlanLoggingNumBuf);
|
|
|
- if (ret)
|
|
|
- hdd_err("wlan_logging_sock_activate_svc failed: %d", ret);
|
|
|
- return ret;
|
|
|
-}
|
|
|
-
|
|
|
-/**
|
|
|
- * wlan_hdd_logging_sock_deactivate_svc() - Deactivate logging
|
|
|
- * @hdd_ctx: HDD context
|
|
|
- *
|
|
|
- * Deactivates the logging service
|
|
|
- *
|
|
|
- * Return: 0 on deactivating the logging service
|
|
|
- */
|
|
|
-static int hdd_logging_sock_deactivate_svc(hdd_context_t *hdd_ctx)
|
|
|
-{
|
|
|
- if (hdd_ctx && hdd_ctx->config->wlanLoggingEnable)
|
|
|
- return wlan_logging_sock_deactivate_svc();
|
|
|
-
|
|
|
- return 0;
|
|
|
-}
|
|
|
-#else
|
|
|
-static inline int hdd_logging_sock_activate_svc(hdd_context_t *hdd_ctx)
|
|
|
-{
|
|
|
- return 0;
|
|
|
-}
|
|
|
-
|
|
|
-static inline int hdd_logging_sock_deactivate_svc(hdd_context_t *hdd_ctx)
|
|
|
-{
|
|
|
- return 0;
|
|
|
-}
|
|
|
-#endif
|
|
|
-
|
|
|
/**
|
|
|
* hdd_register_notifiers - Register netdev notifiers.
|
|
|
* @hdd_ctx: HDD context
|
|
@@ -5867,8 +5816,6 @@ static int hdd_context_deinit(hdd_context_t *hdd_ctx)
|
|
|
static void hdd_context_destroy(hdd_context_t *hdd_ctx)
|
|
|
{
|
|
|
|
|
|
- hdd_logging_sock_deactivate_svc(hdd_ctx);
|
|
|
-
|
|
|
wlan_hdd_deinit_tx_rx_histogram(hdd_ctx);
|
|
|
|
|
|
hdd_context_deinit(hdd_ctx);
|
|
@@ -7887,9 +7834,8 @@ static hdd_context_t *hdd_context_create(struct device *dev)
|
|
|
if (ret)
|
|
|
goto err_deinit_hdd_context;
|
|
|
|
|
|
- ret = hdd_logging_sock_activate_svc(hdd_ctx);
|
|
|
- if (ret)
|
|
|
- goto err_free_histogram;
|
|
|
+ wlan_logging_set_log_to_console(hdd_ctx->config->wlanLoggingToConsole);
|
|
|
+ wlan_logging_set_active(hdd_ctx->config->wlanLoggingEnable);
|
|
|
|
|
|
skip_multicast_logging:
|
|
|
hdd_set_trace_level_for_each(hdd_ctx);
|
|
@@ -7898,9 +7844,6 @@ skip_multicast_logging:
|
|
|
|
|
|
return hdd_ctx;
|
|
|
|
|
|
-err_free_histogram:
|
|
|
- wlan_hdd_deinit_tx_rx_histogram(hdd_ctx);
|
|
|
-
|
|
|
err_deinit_hdd_context:
|
|
|
hdd_context_deinit(hdd_ctx);
|
|
|
|