pmaports/device/testing/firmware-huawei-alice/alice-wlan
BO41 34a85fafa4
huawei-alice: add wifi firmware (MR 2234)
[ci:skip-build] already built successfully in CI
2021-06-10 16:15:59 -07:00

18 lines
No EOL
336 B
Text

#!/sbin/openrc-run
description="Initialize hi1101 wlan driver"
depend()
{
need udev
before wpa_supplicant
}
start()
{
ebegin "Enabling wlan driver"
echo 1 > /sys/devices/hi110x_ps/bfg_lowpower_enable
echo 12 > /sys/devices/hi110x_power/powerpin_state
echo 1 > /proc/wifi_enable/wifi_start
echo 1 > /proc/oam_enable/oam_start
}