Developing lightweight computation at the DSG edge

Commit 2f62ea43 authored by root's avatar root
Browse files

quickly fixing vlan problem with routerstationPRO and mac80211 radios

parent 994c3cb3
......@@ -15,17 +15,28 @@
https://dev.openwrt.org/log/branches/backfire/package/mac80211/files/lib/wifi
currently the patch instructions in the HOWTO fail!!!!!!
- Make sure firewall is really disabled !!!!!!!!!! ARGHHH!!!!!
DONE:
- The vlan problem with mac80211 drivers:
vlan interfaces for ath9k are created as vlan12@wlan1
NO vlan interfaces for ath5k devices are created.
- Make sure firewall is really disabled !!!!!!!!!! ARGHHH!!!!!
Off the record:
## PAU ##
- this is off the record...
## AGUSTI ##
- Configuration eth0 in ipv4. Change 192.168.1.1 by default?
# Copyright (C) 2006 OpenWrt.org
include /lib/network
addif() {
# Ensure that ipv6 is loaded, autoloading happens later but ipv6 might be
# required now for interface setup.
[ -d /proc/sys/net/ipv6 ] || {
grep -q '^ipv6' /etc/modules.d/* && insmod ipv6
}
# PPP devices are configured by pppd, no need to run setup_interface here
case "$INTERFACE" in
ppp*|3g-*) return 0;;
# ath*) return 0;;
wlan*) return 0;;
esac
scan_interfaces
local cfg="$(find_config "$INTERFACE")"
# check the autoload setting
config_get auto "$cfg" auto
case "$auto" in
1|on|enabled) setup_interface "$INTERFACE";;
esac
# find all vlan configurations for this interface and set them up as well
for ifc in $interfaces; do
config_get iftype "$ifc" type
config_get ifs "$ifc" device
for dev in $ifs; do
[ "${dev%%\.*}" = "$INTERFACE" -a "$dev" != "$INTERFACE" ] && {
add_vlan "$dev"
}
done
done
}
delif() {
scan_interfaces
# find all vlan configurations for this interface and nuke 'em
for ifc in $interfaces; do
config_get iftype "$ifc" type
config_get ifs "$ifc" device
confdevs="$(uci_get network.$ifc.ifname)"
for dev in $ifs; do
[ "${dev%%\.*}" = "$INTERFACE" ] && {
list_contains confdevs "$dev" || list_remove ifs "$dev"
}
done
uci_set_state "network" "$ifc" device "$ifs"
done
}
case "$ACTION" in
add|register)
case "$PHYSDEVDRIVER" in
natsemi) sleep 1;;
esac
addif
;;
remove|unregister)
delif
;;
esac
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=20
STOP=98
start() {
[ -f /proc/net/vlan/config ] && vconfig set_name_type DEV_PLUS_VID_NO_PAD
}
stop() {
echo
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment