forked from TheMuppets/proprietary_vendor_samsung
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
82 changed files
with
606 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Copyright (C) 2010 The Android Open Source Project | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/system/bin/sh | ||
#------------------------------------------------------------------------------ | ||
# <copyright file="makefile" company="Atheros"> | ||
# Copyright (c) 2005-2010 Atheros Corporation. All rights reserved. | ||
# $ATH_LICENSE_HOSTSDK0_C$ | ||
#------------------------------------------------------------------------------ | ||
#============================================================================== | ||
# Author(s): ="Atheros" | ||
#============================================================================== | ||
TAGS="wlan_mac" | ||
SYSLOG="log -p i -t $TAGS " | ||
BT_ENABLED="`getprop service.brcm.bt.activation 0`" | ||
IFNAME=wlan0 | ||
WLAN_ENABLE_CHECK="wmiconfig -i $IFNAME --getRTS" | ||
|
||
if ! ls /data/.nvmac.info; then | ||
while true; do | ||
case `getprop ril.wifi_macaddr` in | ||
"") | ||
# $SYSLOG "Still waiting for mac property" | ||
sleep 1 | ||
;; | ||
*) | ||
break | ||
;; | ||
esac | ||
done | ||
$SYSLOG "Generate mac file" `getprop ril.wifi_macaddr` | ||
echo `getprop ril.wifi_macaddr` > /data/.nvmac.info | ||
fi | ||
|
||
mv /data/log/ar6k.log /data/log/ar6k.previous.log | ||
recEvent --logfile=/data/log/ar6k.log --binary --reclimit=10000& | ||
|
||
for i in 1 2 3 4 5 6 7 8 9 10; do | ||
if $WLAN_ENABLE_CHECK; then | ||
break; | ||
fi | ||
sleep 1 | ||
done | ||
|
||
if exp $BT_ENABLED == 1; then | ||
$SYSLOG "Setup bt on" | ||
wmiconfig -i $IFNAME --bt on | ||
else | ||
$SYSLOG "Setup bt off" | ||
wmiconfig -i $IFNAME --bt off | ||
fi | ||
|
||
wmiconfig -i $IFNAME --wlan disable |
Oops, something went wrong.