Message ID | 20190128135425.8722-4-freifunk@adrianschmutzler.de |
---|---|
State | Accepted |
Headers | show |
diff --git a/bsp/ar71xx/.config b/bsp/ar71xx/.config index ec90edf2..6822ca31 100644 --- a/bsp/ar71xx/.config +++ b/bsp/ar71xx/.config @@ -14,6 +14,8 @@ CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_archer-c7-v2=y CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c7-v2="-kmod-ath10k kmod-ath10k-ct" CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe210-220-v1=y CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_cpe210-220-v1="" +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe210-v2=y +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_cpe210-v2="" CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe510-520-v1=y CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_cpe510-520-v1="" CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_gl-ar150=y diff --git a/bsp/board_ar71xx.bsp b/bsp/board_ar71xx.bsp index db5d3059..3b504908 100644 --- a/bsp/board_ar71xx.bsp +++ b/bsp/board_ar71xx.bsp @@ -7,6 +7,7 @@ images=("openwrt-${chipset}-${subtarget}-archer-c25-v1-squashfs-sysupgrade.bin" "openwrt-${chipset}-${subtarget}-archer-c60-v2-squashfs-sysupgrade.bin" "openwrt-${chipset}-${subtarget}-archer-c7-v2-squashfs-sysupgrade.bin" "openwrt-${chipset}-${subtarget}-cpe210-220-v1-squashfs-sysupgrade.bin" + "openwrt-${chipset}-${subtarget}-cpe210-v2-squashfs-sysupgrade.bin" "openwrt-${chipset}-${subtarget}-cpe510-520-v1-squashfs-sysupgrade.bin" "openwrt-${chipset}-${subtarget}-gl-ar150-squashfs-sysupgrade.bin" "openwrt-${chipset}-${subtarget}-tl-mr3020-v1-squashfs-sysupgrade.bin" diff --git a/src/packages/fff/fff-network/ar71xx/network.cpe210-v2 b/src/packages/fff/fff-network/ar71xx/network.cpe210-v2 new file mode 100644 index 00000000..245aa6e3 --- /dev/null +++ b/src/packages/fff/fff-network/ar71xx/network.cpe210-v2 @@ -0,0 +1,7 @@ +WANDEV=eth0 +SWITCHDEV=eth0 +ONE_PORT="YES" + +. /etc/network.mode + +ROUTERMAC=$(cat /sys/class/ieee80211/phy0/macaddress) diff --git a/src/packages/fff/fff-wireless/files/etc/wifi.cpe210-v2 b/src/packages/fff/fff-wireless/files/etc/wifi.cpe210-v2 new file mode 100644 index 00000000..3a5f3c49 --- /dev/null +++ b/src/packages/fff/fff-wireless/files/etc/wifi.cpe210-v2 @@ -0,0 +1,2 @@ +uci -q set system.rssid_wlan0.dev=radio0 +uci -q commit system
hi sieht soweit plausibel aus auch wenn ich die Sache mit der LED bisschen schief finde aber wenn es tut soll es mir auch recht sein: Reviewed-by: Christian Dresel <fff@chrisi01.de> Gruß Christian On 28.01.19 14:54, Adrian Schmutzler wrote: > With our dynamic resetting of WiFi interfaces, the rssileds > of OpenWrt do not work correctly. This disables them as a > workaround, since they otherwise create about 20 % CPU load. > > Since the MACH file for all CPE210/510 is the same, no adjustment > of the OpenWrt-tiny patch is needed. > > Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> > > --- > > Changes in v2: > none > --- > bsp/ar71xx/.config | 2 ++ > bsp/board_ar71xx.bsp | 1 + > src/packages/fff/fff-network/ar71xx/network.cpe210-v2 | 7 +++++++ > src/packages/fff/fff-wireless/files/etc/wifi.cpe210-v2 | 2 ++ > 4 files changed, 12 insertions(+) > create mode 100644 src/packages/fff/fff-network/ar71xx/network.cpe210-v2 > create mode 100644 src/packages/fff/fff-wireless/files/etc/wifi.cpe210-v2 > > diff --git a/bsp/ar71xx/.config b/bsp/ar71xx/.config > index ec90edf2..6822ca31 100644 > --- a/bsp/ar71xx/.config > +++ b/bsp/ar71xx/.config > @@ -14,6 +14,8 @@ CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_archer-c7-v2=y > CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_archer-c7-v2="-kmod-ath10k kmod-ath10k-ct" > CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe210-220-v1=y > CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_cpe210-220-v1="" > +CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe210-v2=y > +CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_cpe210-v2="" > CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_cpe510-520-v1=y > CONFIG_TARGET_DEVICE_PACKAGES_ar71xx_tiny_DEVICE_cpe510-520-v1="" > CONFIG_TARGET_DEVICE_ar71xx_tiny_DEVICE_gl-ar150=y > diff --git a/bsp/board_ar71xx.bsp b/bsp/board_ar71xx.bsp > index db5d3059..3b504908 100644 > --- a/bsp/board_ar71xx.bsp > +++ b/bsp/board_ar71xx.bsp > @@ -7,6 +7,7 @@ images=("openwrt-${chipset}-${subtarget}-archer-c25-v1-squashfs-sysupgrade.bin" > "openwrt-${chipset}-${subtarget}-archer-c60-v2-squashfs-sysupgrade.bin" > "openwrt-${chipset}-${subtarget}-archer-c7-v2-squashfs-sysupgrade.bin" > "openwrt-${chipset}-${subtarget}-cpe210-220-v1-squashfs-sysupgrade.bin" > + "openwrt-${chipset}-${subtarget}-cpe210-v2-squashfs-sysupgrade.bin" > "openwrt-${chipset}-${subtarget}-cpe510-520-v1-squashfs-sysupgrade.bin" > "openwrt-${chipset}-${subtarget}-gl-ar150-squashfs-sysupgrade.bin" > "openwrt-${chipset}-${subtarget}-tl-mr3020-v1-squashfs-sysupgrade.bin" > diff --git a/src/packages/fff/fff-network/ar71xx/network.cpe210-v2 b/src/packages/fff/fff-network/ar71xx/network.cpe210-v2 > new file mode 100644 > index 00000000..245aa6e3 > --- /dev/null > +++ b/src/packages/fff/fff-network/ar71xx/network.cpe210-v2 > @@ -0,0 +1,7 @@ > +WANDEV=eth0 > +SWITCHDEV=eth0 > +ONE_PORT="YES" > + > +. /etc/network.mode > + > +ROUTERMAC=$(cat /sys/class/ieee80211/phy0/macaddress) > diff --git a/src/packages/fff/fff-wireless/files/etc/wifi.cpe210-v2 b/src/packages/fff/fff-wireless/files/etc/wifi.cpe210-v2 > new file mode 100644 > index 00000000..3a5f3c49 > --- /dev/null > +++ b/src/packages/fff/fff-wireless/files/etc/wifi.cpe210-v2 > @@ -0,0 +1,2 @@ > +uci -q set system.rssid_wlan0.dev=radio0 > +uci -q commit system
With our dynamic resetting of WiFi interfaces, the rssileds of OpenWrt do not work correctly. This disables them as a workaround, since they otherwise create about 20 % CPU load. Since the MACH file for all CPE210/510 is the same, no adjustment of the OpenWrt-tiny patch is needed. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> --- Changes in v2: none --- bsp/ar71xx/.config | 2 ++ bsp/board_ar71xx.bsp | 1 + src/packages/fff/fff-network/ar71xx/network.cpe210-v2 | 7 +++++++ src/packages/fff/fff-wireless/files/etc/wifi.cpe210-v2 | 2 ++ 4 files changed, 12 insertions(+) create mode 100644 src/packages/fff/fff-network/ar71xx/network.cpe210-v2 create mode 100644 src/packages/fff/fff-wireless/files/etc/wifi.cpe210-v2