From 5af892fb013b09f7c785c6fc5d312b74e1d6fe9e Mon Sep 17 00:00:00 2001 From: Sameer Thalappil Date: Mon, 22 Oct 2012 16:02:54 -0700 Subject: [PATCH] wcnss: Move cfg80211 to wcnss specific location The default cfg80211 module is for wcnss solution, so move this to wcnss specific directory at first boot. This move was done in wlan driver makeifile; however this is preventing the binary only builds to run because cfg80211 is an open source module and cannot be packaged with properietary module. Change-Id: Id180953245cf7cd63ae359bbac77ccf780f5924c --- rootdir/etc/init.qcom.wifi.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/rootdir/etc/init.qcom.wifi.sh b/rootdir/etc/init.qcom.wifi.sh index 17d2c05a..f776f61a 100755 --- a/rootdir/etc/init.qcom.wifi.sh +++ b/rootdir/etc/init.qcom.wifi.sh @@ -97,6 +97,13 @@ load_wifiKM() case "$target" in msm8974*) + + # At first boot move cfg80211.ko module to pronto location; + # the default cfg80211.ko is for wcnss solution + if [ ! -L /system/lib/modules/cfg80211.ko ]; then + mv /system/lib/modules/cfg80211.ko /system/lib/modules/pronto/ + fi + # link pronto modules rm /system/lib/modules/wlan.ko rm /system/lib/modules/cfg80211.ko @@ -112,6 +119,13 @@ case "$target" in ;; msm8960*) + + # Move cfg80211.ko to prima directory, the default cfg80211.ko is + # for wcnss solution + if [ ! -L /system/lib/modules/cfg80211.ko ]; then + mv /system/lib/modules/cfg80211.ko /system/lib/modules/prima/ + fi + wlanchip="" if [ -f /system/etc/firmware/ath6k/AR6004/ar6004_wlan.conf ]; then @@ -242,6 +256,12 @@ case "$target" in ;; msm7627a*) + + # The default cfg80211 module is for volans + if [ ! -L /system/lib/modules/cfg80211.ko ]; then + mv /system/lib/modules/cfg80211.ko /system/lib/modules/volans/ + fi + wlanchip=`cat /persist/wlan_chip_id` echo "The WLAN Chip ID is $wlanchip" case "$wlanchip" in