openwrt/package
Michael 'ASAP' Weinrich 0da199f60c
base-files: fix wrong ucidef_set_network_device_mac network-device entry
The ucidef_set_network_device_* functions in uci-defaults.sh disagree
on whether to use "network-device" or "network_device" in board.json.
With the additional caveat that jshn will translate hyphens (-) into
underscores (_). This casues problems in netifd which expected
"network_device" causing boards which depend on assigning MACs in
board.json via uci-defaults.sh (or jshn in general) to fail.

This commit addresses the issue by using network_device in
uci-defaults.sh.

The bug was uncovered in the forums here:
https://forum.openwrt.org/t/support-for-rtl838x-based-managed-switches/57875/2596

This was exposed by commit 4ebba8a05d ("realtek: add support for HPE
1920-8g-poe+") where the board_config_load call from 03_gpio introduced
the key normalization by jshn.

Fixes: 9290539ca9 ("base-files: allow setting device and bridge macs")
Tested-by: Stijn Segers <foss@volatilesystems.org>
Signed-off-by: Michael 'ASAP' Weinrich <michael@a5ap.net>
[ improve commit title, description and fix wrong Tested-by tag ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 12bc79d6d5)
2023-10-20 13:09:47 +02:00
..
base-files base-files: fix wrong ucidef_set_network_device_mac network-device entry 2023-10-20 13:09:47 +02:00
boot treewide: Add extra CPE identifier 2023-09-27 22:37:13 +02:00
devel perf: opt-out of lto usage 2023-08-11 12:53:34 +02:00
firmware packages: assign PKG_CPE_ID for all missing packages 2023-09-27 22:37:01 +02:00
kernel mac80211: fix AP reconfiguration on DFS channels in non-ETSI regdomain 2023-09-18 16:52:25 +02:00
libs mbedtls: Update to version 2.28.5 2023-10-15 19:51:39 +02:00
network uqmi: added timeout to fix hanging qmi.sh 2023-10-08 14:14:50 +02:00
system treewide: Add extra CPE identifier 2023-09-27 22:37:13 +02:00
utils bsdiff: Add patches for CVEs 2023-10-09 23:45:35 +02:00
Makefile build: generate index.json 2023-05-09 23:56:49 +02:00