[OpenWrt-Devel] [PATCH v2] axs10x: initilaze network for wireless access-point

Alexey Brodkin Alexey.Brodkin at synopsys.com
Wed Nov 25 11:29:29 EST 2015

ARC SDP board sports only 1 network interface - eth0,
so to operate as an access point it requires at least
another interface (preferably wireless),
so USB Wi-Fi dongle is what we want.

And with USB Wi-Fi dongle attached ARC SDP board could be
used as a "dumb" wireless access point.

Now with modified network setup script it is only required
to enable wireless radio on the first boot with
uci set wireless.radio0.disabled=0
uci commit wireless

Note if by the time initscripts are executed USB Wi-Fi
dongle not yet recognized and set up by Linux kernel
its autodetection by "wifi" tool may not happen
automatically. In that case before issuing command above
one needs to populate /etc/config/wireless config:
wifi detect > /etc/config/wireless

Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
Cc: Felix Fietkau <nbd at openwrt.org>
Cc: Jo-Philipp Wich <jow at openwrt.org>
Cc: Jonas Gorski <jogo at openwrt.org>

Changes compared to v1:
 * Reverted to use of ucidef_set_interface_raw script
 * Removed work-around for driver problem (unaligned read if multicast enabled)

 target/linux/arc770/base-files/etc/uci-defaults/02_network | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/arc770/base-files/etc/uci-defaults/02_network b/target/linux/arc770/base-files/etc/uci-defaults/02_network
index 87cfe81..685b2ab 100644
--- a/target/linux/arc770/base-files/etc/uci-defaults/02_network
+++ b/target/linux/arc770/base-files/etc/uci-defaults/02_network
@@ -15,6 +15,7 @@ ucidef_set_interface_loopback
 case "$( arc_board_name )" in
 	ucidef_set_interface_raw "lan" "eth0" "dhcp"
+	uci set network.lan.type='bridge'
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list