On Mon, Nov 23, 2015 at 9:28 AM, Alexey Brodkin <[email protected]> wrote: > 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 > -------------->8------------ > uci set wireless.radio0.disabled=0 > uci commit wireless > wifi > -------------->8------------ > > 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: > -------------->8------------ > wifi detect > /etc/config/wireless > -------------->8------------ > > Signed-off-by: Alexey Brodkin <[email protected]> > Cc: Felix Fietkau <[email protected]> > Cc: Jo-Philipp Wich <[email protected]> > Cc: Jonas Gorski <[email protected]> > --- > target/linux/arc770/base-files/etc/uci-defaults/02_network | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > 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..7503f85 100644 > --- a/target/linux/arc770/base-files/etc/uci-defaults/02_network > +++ b/target/linux/arc770/base-files/etc/uci-defaults/02_network > @@ -14,7 +14,17 @@ ucidef_set_interface_loopback > > case "$( arc_board_name )" in > "arc-sdp"*) > - ucidef_set_interface_raw "lan" "eth0" "dhcp"
Keep this line instead > + uci set network.lan.type='bridge' And only add this line. > + uci set network.lan.ifname='eth0 wlan0' This is unneeded, as netifd will automatically join the wifi interface to the bridge in the default config (with the option network 'lan' line in /etc/config/wireless). > + # With multicast-to-unicast enabled kernel crashes > + # on the first wireless client connection in > + # br_multicast_add_group() -> br_port_group_equal() -> > + # ether_addr_equal() due to misaligned read. > + # For some reason "src" being "eth_hdr(skb)->h_source" > + # is not 16-bit aligned as it is supposed to be. > + uci set network.lan.multicast_to_unicast='0' And this doesn't belong here at all, this is a complete separate issue and should be fixed where it occurs, not worked around (sounds like an issue in the ath9k-htc driver). Does ARC not provide emulation of unaligned accesses like mips does? Jonas _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
