openwrt/package
Michael 'ASAP' Weinrich 12bc79d6d5
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>
2023-10-20 12:53:43 +02:00
..
base-files base-files: fix wrong ucidef_set_network_device_mac network-device entry 2023-10-20 12:53:43 +02:00
boot ipq806x: add support for Extreme Networks AP3935 2023-10-05 00:56:57 +02:00
devel binutils: update to 2.41 2023-10-17 11:05:00 +02:00
firmware ipq-wifi: improve and update instructions on how to add board files 2023-10-02 19:00:14 +02:00
kernel mac80211: rt2x00: improve EEPROM load patches 2023-10-16 14:16:55 +02:00
libs gmp: update to 6.3 2023-10-17 11:05:16 +02:00
network umdns: update to the latest version 2023-10-19 19:15:32 +02:00
system uci: fix Makefile formatting 2023-10-01 23:18:02 +03:00
utils util-linux: update to 2.39.2 2023-10-11 08:08:36 +02:00
Makefile build: generate index.json 2023-05-09 23:56:49 +02:00