WIFI: fix wifi connect fail issue [1/1]
authorRongjun Chen <rongjun.chen@amlogic.com>
Wed, 9 Jan 2019 02:19:35 +0000 (10:19 +0800)
committerRongjun Chen <rongjun.chen@amlogic.com>
Wed, 9 Jan 2019 02:29:23 +0000 (10:29 +0800)
PD#SWPL-1958

Problem:
connect 5G wifi fail

Solution:
set assoc_rety_max=30

Verify:
p215

Change-Id: I56f12f4dd07712b2840cda0a3fd4a3eeb84720e5
Signed-off-by: Rongjun Chen <rongjun.chen@amlogic.com>
bcmdhd.1.579.77.41.1.cn/dhd_config.c
bcmdhd.100.10.315.x/dhd_config.c

index 8aa7a9ae2f38b3c87f36039edb514e4fdf8188e5..a1c63c2fe15bd455b1add29c668dab077078342a 100644 (file)
@@ -2605,6 +2605,7 @@ void
 dhd_conf_postinit_ioctls(dhd_pub_t *dhd)\r
 {\r
        struct dhd_conf *conf = dhd->conf;\r
+       char wl_preinit[] = "assoc_retry_max=30";\r
 \r
        dhd_conf_set_intiovar(dhd, WLC_UP, "up", 0, 0, FALSE);\r
        dhd_conf_map_country_list(dhd, &conf->cspec);\r
@@ -2642,7 +2643,7 @@ dhd_conf_postinit_ioctls(dhd_pub_t *dhd)
 #endif\r
        dhd_conf_set_intiovar(dhd, WLC_SET_VAR, "txbf", conf->txbf, 0, FALSE);\r
        dhd_conf_set_intiovar(dhd, WLC_SET_FAKEFRAG, "WLC_SET_FAKEFRAG", conf->frameburst, 0, FALSE);\r
-\r
+       dhd_conf_set_wl_preinit(dhd, wl_preinit);\r
        dhd_conf_set_wl_preinit(dhd, conf->wl_preinit);\r
 \r
 #ifndef WL_CFG80211\r
index fed007f6372ced5a0ac22a3708c9908fca1af8cb..a3eb9be68da586a2f808b5d379cdc4f11c2e819d 100644 (file)
@@ -2680,6 +2680,7 @@ void
 dhd_conf_postinit_ioctls(dhd_pub_t *dhd)\r
 {\r
        struct dhd_conf *conf = dhd->conf;\r
+       char wl_preinit[] = "assoc_retry_max=30";\r
 \r
        dhd_conf_set_intiovar(dhd, WLC_UP, "up", 0, 0, FALSE);\r
        dhd_conf_map_country_list(dhd, &conf->cspec);\r
@@ -2717,7 +2718,7 @@ dhd_conf_postinit_ioctls(dhd_pub_t *dhd)
 #endif\r
        dhd_conf_set_intiovar(dhd, WLC_SET_VAR, "txbf", conf->txbf, 0, FALSE);\r
        dhd_conf_set_intiovar(dhd, WLC_SET_FAKEFRAG, "WLC_SET_FAKEFRAG", conf->frameburst, 0, FALSE);\r
-\r
+       dhd_conf_set_wl_preinit(dhd, wl_preinit);\r
        dhd_conf_set_wl_preinit(dhd, conf->wl_preinit);\r
 \r
 #ifndef WL_CFG80211\r