From e55d83ba14a0c25118f40aa33d1891360301fc12 Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Wed, 18 Jan 2017 12:56:01 +0100 Subject: [PATCH] kernel-module-qualcomm: Bring the module up with the p2p0 interface too The qualcomm wlan driver creates two interfaces at load time, wlan0 and p2p0. Both of them should load the module if not already loaded. Signed-off-by: Alex Gonzalez --- .../kernel-module-qualcomm/qualcomm-pre-up | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-digi-arm/recipes-kernel/kernel-module-qualcomm/kernel-module-qualcomm/qualcomm-pre-up b/meta-digi-arm/recipes-kernel/kernel-module-qualcomm/kernel-module-qualcomm/qualcomm-pre-up index 53d0e18b0..89efc7e75 100644 --- a/meta-digi-arm/recipes-kernel/kernel-module-qualcomm/kernel-module-qualcomm/qualcomm-pre-up +++ b/meta-digi-arm/recipes-kernel/kernel-module-qualcomm/kernel-module-qualcomm/qualcomm-pre-up @@ -15,7 +15,10 @@ # #=============================================================================== -[ "${IFACE}" != "wlan0" ] && exit 0 +[ "${IFACE}" != "wlan0" ] && [ "${IFACE}" != "p2p0" ] && exit 0 + +# If the qualcomm driver is already loaded exit +grep -qws 'wlan' /proc/modules && exit 0 FIRMWARE_DIR="/lib/firmware" MACFILE="${FIRMWARE_DIR}/wlan/wlan_mac.bin"