diff options
| -rw-r--r-- | core/hdd/src/wlan_hdd_main.c | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index f946090f7cbd..da67fda44a74 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -11585,28 +11585,6 @@ static void wlan_hdd_state_ctrl_param_destroy(void) pr_info("Device node unregistered"); } -#ifndef MODULE -static int hdd_wait_for_probe_complete(void) -{ - unsigned long rc; - - rc = wait_for_completion_timeout(&wlan_start_comp, - msecs_to_jiffies(HDD_WLAN_START_WAIT_TIME)); - - if (!rc) { - hdd_alert("Timed-out waiting for Probe to complete"); - return -ETIMEDOUT; - } - - return 0; -} -#else -static int hdd_wait_for_probe_complete(void) -{ - return 0; -} -#endif - /** * __hdd_module_init - Module init helper * @@ -11648,12 +11626,6 @@ static int __hdd_module_init(void) goto out; } - if (hdd_wait_for_probe_complete()) { - pr_err("%s: probe of the driver failed!", __func__); - wlan_hdd_unregister_driver(); - goto out; - } - pr_info("%s: driver loaded\n", WLAN_MODULE_NAME); return 0; @@ -11713,7 +11685,6 @@ static ssize_t wlan_boot_cb(struct kobject *kobj, return -EALREADY; } - init_completion(&wlan_start_comp); if (__hdd_module_init()) { pr_err("%s: wlan driver initialization failed\n", __func__); return -EIO; @@ -11815,6 +11786,7 @@ static int wlan_deinit_sysfs(void) hdd_sysfs_cleanup(); return 0; } + #endif /* MODULE */ #ifdef MODULE |
