Skip to content

ramips: Fix lan/wan MAC addresses for cudy,wr1000#2313

Closed
adschm wants to merge 1 commit intoopenwrt:masterfrom
adschm:fixmacorder
Closed

ramips: Fix lan/wan MAC addresses for cudy,wr1000#2313
adschm wants to merge 1 commit intoopenwrt:masterfrom
adschm:fixmacorder

Conversation

@adschm
Copy link
Copy Markdown
Member

@adschm adschm commented Aug 10, 2019

The stock firmware for cudy,wr1000 sets LAN MAC address to WAN
MAC address + 1.

In OpenWrt, so far MAC addresses have been set by the default
case, i.e. WAN = eth0 + 1.
This patch fixes MAC address setup, so that it matches the stock
firmware choice.

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Aug 10, 2019

@DavideFioravanti Can you test whether MAC addresses are correct with this patch?

The stock firmware for cudy,wr1000 sets LAN MAC address to WAN
MAC address + 1.

In OpenWrt, so far MAC addresses have been set by the default
case, i.e. WAN = eth0 + 1.
This patch fixes MAC address setup, so that it matches the stock
firmware choice.

Signed-off-by: Adrian Schmutzler <[email protected]>
@DavideFioravanti
Copy link
Copy Markdown
Contributor

I can confirm that this patch works ;)
However I found that in the original factory partition there are both wan and mac addresses... so I created this patch: DavideFioravanti@87f189a but you were faster than me :D

@adschm
Copy link
Copy Markdown
Member Author

adschm commented Aug 10, 2019

Your patch is better, as it uses the locations on flash for both assignments (which I couldn't know without the device). Send yours, I will close mine.

@DavideFioravanti
Copy link
Copy Markdown
Contributor

Send yours, I will close mine.

Ok, done ;)

@adschm adschm deleted the fixmacorder branch August 14, 2019 21:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants