Commit 776f030a authored by Luciano Coelho's avatar Luciano Coelho

wl18xx: copy the default configuration before checking the board_type

We were changing the low_band_component_type in the private
configuration structure before copying the default values to it, so
the change was overwritten and only took effect after HW recovery.
Reported-by: default avatarDror Erez <drorer@ti.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
Signed-off-by: default avatarArik Nemtsov <arik@wizery.com>
parent df472894
......@@ -1072,6 +1072,8 @@ int __devinit wl18xx_probe(struct platform_device *pdev)
memcpy(&wl->ht_cap, &wl18xx_mimo_ht_cap,
sizeof(wl18xx_mimo_ht_cap));
wl18xx_conf_init(wl);
if (!board_type_param) {
board_type_param = kstrdup("dvp", GFP_KERNEL);
priv->board_type = BOARD_TYPE_DVP_18XX;
......@@ -1100,8 +1102,6 @@ int __devinit wl18xx_probe(struct platform_device *pdev)
wl->enable_11a = enable_11a_param;
wl18xx_conf_init(wl);
return wlcore_probe(wl, pdev);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment