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:
parent
6503020e29
commit
5af892fb01
|
@ -97,6 +97,13 @@ load_wifiKM()
|
||||||
|
|
||||||
case "$target" in
|
case "$target" in
|
||||||
msm8974*)
|
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
|
# link pronto modules
|
||||||
rm /system/lib/modules/wlan.ko
|
rm /system/lib/modules/wlan.ko
|
||||||
rm /system/lib/modules/cfg80211.ko
|
rm /system/lib/modules/cfg80211.ko
|
||||||
|
@ -112,6 +119,13 @@ case "$target" in
|
||||||
;;
|
;;
|
||||||
|
|
||||||
msm8960*)
|
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=""
|
wlanchip=""
|
||||||
|
|
||||||
if [ -f /system/etc/firmware/ath6k/AR6004/ar6004_wlan.conf ]; then
|
if [ -f /system/etc/firmware/ath6k/AR6004/ar6004_wlan.conf ]; then
|
||||||
|
@ -242,6 +256,12 @@ case "$target" in
|
||||||
;;
|
;;
|
||||||
|
|
||||||
msm7627a*)
|
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`
|
wlanchip=`cat /persist/wlan_chip_id`
|
||||||
echo "The WLAN Chip ID is $wlanchip"
|
echo "The WLAN Chip ID is $wlanchip"
|
||||||
case "$wlanchip" in
|
case "$wlanchip" in
|
||||||
|
|
Loading…
Reference in New Issue