Revert "bcmdhd_88: disable nv_logger logging by default"
Bibhay Ranjan [Wed, 4 Jan 2017 06:56:18 +0000 (11:56 +0530)]
This reverts commit 1ee03ed037ac6576e6bf09b8228ec0b3f63f36d2.

Bug 200231321

Change-Id: I4cfbd01bf8d78a9604cd161f2c4f91f9fe43695a
Signed-off-by: Bibhay Ranjan <bibhayr@nvidia.com>
Reviewed-on: http://git-master/r/1279945
Reviewed-by: Dhiren Parmar <dparmar@nvidia.com>
Tested-by: Dhiren Parmar <dparmar@nvidia.com>

drivers/net/wireless/bcmdhd_88/nv_logger.c

index 084fe06..e353a3a 100644 (file)
@@ -26,7 +26,6 @@ bool enable_file_logging;
 struct list_head list1;
 struct list_head list2;
 bool select_list;
-bool driver_active;
 
 struct workqueue_struct *logger_wqueue;
 struct log_buffer {
@@ -62,8 +61,7 @@ void write_log_init()
                goto netlink_fail;
 
        dhd_log_netlink_send_msg(0, 0, 0, NULL, 0);
-       enable_file_logging = false;
-       driver_active = true;
+       enable_file_logging = true;
        select_list = true;
        return;
 
@@ -95,7 +93,7 @@ int write_log(int event, const char *buf, const char *info)
        struct tm date_time;
        static int count = 0;
 
-       if (!enable_file_logging || !driver_active) {
+       if (!enable_file_logging) {
                return -1;
        }
 
@@ -270,7 +268,7 @@ void write_log_file(const char *log)
 
 void nvlogger_suspend_work()
 {
-       driver_active = false;
+       enable_file_logging = false;
        pr_info("nvlogger_suspend_work\n");
        cancel_work_sync(&enqueue_work);
 }
@@ -278,7 +276,7 @@ void nvlogger_suspend_work()
 void nvlogger_resume_work()
 {
        pr_info("nvlogger_resume_work\n");
-       driver_active = true;
+       enable_file_logging = true;
 }
 
 #define NETLINK_CARBON     29