From 6df37ecfba588b61bf873ffe933034fb6da5368c Mon Sep 17 00:00:00 2001 From: Davide Garberi Date: Wed, 15 May 2019 23:15:09 +0200 Subject: msm8996-common: Remove wcg_mac_tool * Turns out we don't actually need to use this as /proc/mac_wifi and mac_bt can turn into normal mac address values just with hex dumping * Remove bt_mac_prop as we can just set the mac path in vendor_prop.mk Change-Id: I23665cdd5d39d5e090694cff5a63f55ecb9ea334 --- rootdir/bin/init.wlan.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rootdir/bin/init.wlan.sh') diff --git a/rootdir/bin/init.wlan.sh b/rootdir/bin/init.wlan.sh index 36c0430..6036a75 100644 --- a/rootdir/bin/init.wlan.sh +++ b/rootdir/bin/init.wlan.sh @@ -17,8 +17,8 @@ # # Set the proper hardware based wlan mac -if [[ ! -f /persist/wlan_mac.bin ]] || [[ $(cat /persist/wlan_mac.bin | grep Intf0MacAddress | sed 's/Intf0MacAddress=//') != $(getprop sys.wifimac | sed 's/://g') ]]; then - wifi_mac=$(getprop sys.wifimac | sed 's/://g'); +wifi_mac=$(xxd -p /proc/mac_wifi | tr '[:lower:]' '[:upper:]'); +if [[ ! -f /persist/wlan_mac.bin ]] || [[ $(cat /persist/wlan_mac.bin | grep Intf0MacAddress | sed 's/Intf0MacAddress=//') != $(echo $wifi_mac) ]]; then echo "Intf0MacAddress=$wifi_mac END" > /persist/wlan_mac.bin fi; -- cgit v1.2.3