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
This commit is contained in:
Sameer Thalappil 2012-10-22 16:02:54 -07:00
parent 6503020e29
commit 5af892fb01
1 changed files with 20 additions and 0 deletions

View File

@ -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