From: Rongjun Chen Date: Wed, 9 Jan 2019 02:19:35 +0000 (+0800) Subject: WIFI: fix wifi connect fail issue [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=491c73a45089f92748fd46d0294b03ac30b33085;p=GitHub%2FLineageOS%2FG12%2Fandroid_hardware_amlogic_kernel-modules_dhd-driver.git WIFI: fix wifi connect fail issue [1/1] PD#SWPL-1958 Problem: connect 5G wifi fail Solution: set assoc_rety_max=30 Verify: p215 Change-Id: I56f12f4dd07712b2840cda0a3fd4a3eeb84720e5 Signed-off-by: Rongjun Chen --- diff --git a/bcmdhd.1.579.77.41.1.cn/dhd_config.c b/bcmdhd.1.579.77.41.1.cn/dhd_config.c index 8aa7a9a..a1c63c2 100644 --- a/bcmdhd.1.579.77.41.1.cn/dhd_config.c +++ b/bcmdhd.1.579.77.41.1.cn/dhd_config.c @@ -2605,6 +2605,7 @@ void dhd_conf_postinit_ioctls(dhd_pub_t *dhd) { struct dhd_conf *conf = dhd->conf; + char wl_preinit[] = "assoc_retry_max=30"; dhd_conf_set_intiovar(dhd, WLC_UP, "up", 0, 0, FALSE); dhd_conf_map_country_list(dhd, &conf->cspec); @@ -2642,7 +2643,7 @@ dhd_conf_postinit_ioctls(dhd_pub_t *dhd) #endif dhd_conf_set_intiovar(dhd, WLC_SET_VAR, "txbf", conf->txbf, 0, FALSE); dhd_conf_set_intiovar(dhd, WLC_SET_FAKEFRAG, "WLC_SET_FAKEFRAG", conf->frameburst, 0, FALSE); - + dhd_conf_set_wl_preinit(dhd, wl_preinit); dhd_conf_set_wl_preinit(dhd, conf->wl_preinit); #ifndef WL_CFG80211 diff --git a/bcmdhd.100.10.315.x/dhd_config.c b/bcmdhd.100.10.315.x/dhd_config.c index fed007f..a3eb9be 100644 --- a/bcmdhd.100.10.315.x/dhd_config.c +++ b/bcmdhd.100.10.315.x/dhd_config.c @@ -2680,6 +2680,7 @@ void dhd_conf_postinit_ioctls(dhd_pub_t *dhd) { struct dhd_conf *conf = dhd->conf; + char wl_preinit[] = "assoc_retry_max=30"; dhd_conf_set_intiovar(dhd, WLC_UP, "up", 0, 0, FALSE); dhd_conf_map_country_list(dhd, &conf->cspec); @@ -2717,7 +2718,7 @@ dhd_conf_postinit_ioctls(dhd_pub_t *dhd) #endif dhd_conf_set_intiovar(dhd, WLC_SET_VAR, "txbf", conf->txbf, 0, FALSE); dhd_conf_set_intiovar(dhd, WLC_SET_FAKEFRAG, "WLC_SET_FAKEFRAG", conf->frameburst, 0, FALSE); - + dhd_conf_set_wl_preinit(dhd, wl_preinit); dhd_conf_set_wl_preinit(dhd, conf->wl_preinit); #ifndef WL_CFG80211