Skip to content
Snippets Groups Projects
Verified Commit 607057c0 authored by Johannes Schauer Marin Rodrigues's avatar Johannes Schauer Marin Rodrigues
Browse files

sbin/reform-hw-setup: run insmod with -f or otherwise it will fail with...

sbin/reform-hw-setup: run insmod with -f or otherwise it will fail with 'Invalid module format' even if the version is correct
parent 126656a0
No related branches found
No related tags found
No related merge requests found
......@@ -84,11 +84,13 @@ init_qca9377_wifi() {
# load out-of-tree Wi-Fi driver
KERNVER_EXACT=$(dpkg-query --show --showformat '${Version}' "linux-image-$(uname -r)")
modprobe cfg80211
# without "-f", insmod will fail with "Invalid module format" even though
# the kernel version matches
echo "I: Try to load exact match wifi driver: ${KERNVER_EXACT}" >&2
if [ -f "/opt/reform-qcacld2/qcacld2-${KERNVER_EXACT}.ko" ]; then
echo "I: Found exact match for kernel ${KERNVER_EXACT}" >&2
if insmod "/opt/reform-qcacld2/qcacld2-${KERNVER_EXACT}.ko"; then
if insmod -f "/opt/reform-qcacld2/qcacld2-${KERNVER_EXACT}.ko"; then
echo "I: Successfully loaded exact match driver" >&2
return 0
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment