aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mvebu
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-06-05 23:54:37 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-06-05 23:54:37 +0200
commit6f648ed7e639060902df1d652fedd176f4aa9f98 (patch)
tree5203335af1cc9b13aad966a65b8d9a668c73b983 /target/linux/mvebu
parent4a9f389ed2dcee18a5c5e1f0d4e5c406f9290579 (diff)
downloadupstream-6f648ed7e639060902df1d652fedd176f4aa9f98.tar.gz
upstream-6f648ed7e639060902df1d652fedd176f4aa9f98.tar.bz2
upstream-6f648ed7e639060902df1d652fedd176f4aa9f98.zip
treewide: remove "+" sign for increment with macaddr_add
Many people appear to use an unneeded "+" prefix for the increment when calculating a MAC address with macaddr_add. Since this is not required and used inconsistently [*], just remove it. [*] As a funny side-fact, copy-pasting has led to almost all hotplug.d files using the "+", while nearly all of the 02_network files are not using it. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/mvebu')
-rw-r--r--target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless b/target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless
index 2039aeaf1b..f9526e3d86 100644
--- a/target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless
+++ b/target/linux/mvebu/cortexa9/base-files/etc/uci-defaults/03_wireless
@@ -17,8 +17,8 @@ linksys,wrt1900acs|\
linksys,wrt3200acm|\
linksys,wrt32x)
SKU=$(strings /dev/mtd3|sed -ne 's/^cert_region=//p')
- WIFIMAC2G=$(macaddr_add $(mtd_get_mac_ascii devinfo hw_mac_addr) +1)
- WIFIMAC5G=$(macaddr_add $WIFIMAC2G +1)
+ WIFIMAC2G=$(macaddr_add $(mtd_get_mac_ascii devinfo hw_mac_addr) 1)
+ WIFIMAC5G=$(macaddr_add $WIFIMAC2G 1)
case "$SKU" in
AP)
REGD=CN