From 9f1a11bdc3fef58bc41bebec858ccab0cd9050e4 Mon Sep 17 00:00:00 2001 From: "yang.tian" Date: Thu, 3 Jan 2019 10:15:57 +0800 Subject: [PATCH] MA-13879[wifi concurrency] Add bootargs to set a property for wifi vendor of 8mm Since evk_8mm will support both QCA9377 and BCM43455 wifi, add bootargs to pass a property to differ which wifi is used. Change-Id: I83f7fd657dbdedc54931148cd6dd3d59563b6ec3 Signed-off-by: yang.tian --- common/image-android.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/image-android.c b/common/image-android.c index 71b93da2d5..a399b1c9e9 100644 --- a/common/image-android.c +++ b/common/image-android.c @@ -138,6 +138,14 @@ int android_image_get_kernel(const struct andr_img_hdr *hdr, int verify, strncat(commandline, newbootargs, sizeof(commandline) - strlen(commandline)); #endif +#ifdef CONFIG_TARGET_IMX8MM_DDR4_EVK + sprintf(newbootargs," androidboot.wifivendor=BCM"); + strncat(commandline, newbootargs, sizeof(commandline) - strlen(commandline)); +#elif CONFIG_TARGET_IMX8MM_EVK + sprintf(newbootargs," androidboot.wifivendor=QCA"); + strncat(commandline, newbootargs, sizeof(commandline) - strlen(commandline)); +#endif + /* append soc type into bootargs */ char *soc_type = env_get("soc_type"); if (soc_type) {