wl1251: Generate random MAC address only if driver does not have valid
authorPali Rohár <pali.rohar@gmail.com>
Thu, 9 Nov 2017 23:38:24 +0000 (00:38 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Feb 2018 13:50:43 +0000 (15:50 +0200)
commit562da3a39cb78ffaba44511ec39d8c245023a02f
treef76375c0629dc64c918ad265ce33ea848ca3a1cd
parentf63b4c971f5fb1310f145785c3b2b77651ef129e
wl1251: Generate random MAC address only if driver does not have valid

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.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ti/wl1251/main.c