mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 09:32:34 +00:00
1. porting MorseMicro HaLow driver to support HaLow on EAP112 2. Only support FCC regulation because of hardware limitation 3. Add /etc/init.d/halow-gpio-reset to initialize HaLow chip in early stage 4. Add /etc/uci-defaults/aaa-fix-phy0-to-morse to correct the default uci for HaLow radio. Signed-off-by: Ian Chen <ian77_chen@accton.com>
29 lines
545 B
Bash
Executable File
29 lines
545 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2006-2011 OpenWrt.org
|
|
|
|
START=09
|
|
|
|
. /lib/functions.sh
|
|
. /lib/functions/uci-defaults.sh
|
|
. /lib/functions/system.sh
|
|
|
|
boot() {
|
|
. /lib/functions.sh
|
|
. /lib/functions/uci-defaults.sh
|
|
. /lib/functions/system.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
edgecore,eap112)
|
|
|
|
echo 486 > /sys/class/gpio/export
|
|
echo "out" > /sys/class/gpio/gpio486/direction
|
|
echo 0 > /sys/class/gpio/gpio486/value
|
|
sleep 1
|
|
echo "in" > /sys/class/gpio/gpio486/direction
|
|
echo 486 > /sys/class/gpio/unexport
|
|
|
|
esac
|
|
}
|