Thread (38 messages) flat view 38 messages, 5 authors, 2018-02-27

Re: [PATCH 4/6] wl1251: Generate random MAC address only if driver does not have valid

From: Pavel Machek <hidden>
Date: 2016-12-24 18:08:58
Also in: linux-wireless, lkml

On Sat 2016-12-24 17:52:59, Pali Rohár wrote:
Before this patch driver generated random MAC address every time when was
doing initialization. And after that random MAC address could be
overwritten with fixed one if provided.
Before this patch, driver generated random MAC address every time it
was initialized. After that random MAC address could be overwritten
with fixed one, if provided.
This patch changes order. First it tries to read fixed MAC address and if
it fails then driver generates random MAC address.
I don't quite get where the advantage is supposed to be. Is it that
"use_eeprom" is set, but reading fails?

The only case where this helps is if wl1251_read_eeprom_mac() succeeds
but reads invalid address.
Signed-off-by: Pali Rohár <redacted>
Acked-by: Pavel Machek <redacted>

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help