]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: fall back to random mac address
authorMartin Kaiser <martin@kaiser.cx>
Wed, 13 Jul 2022 07:55:52 +0000 (09:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Jul 2022 13:47:36 +0000 (15:47 +0200)
commitfb144a6ed0042dd1456b79c1a4cf869d3b7601e8
tree8fb02b92373016e8d4aef0e167555d6810d383c0
parent9928236c1bd1314c5a2d6fba019261e0d1dbd438
staging: r8188eu: fall back to random mac address

Call eth_random_addr to generate a random mac address if we cannot load
the mac address from the efuses.

Do not use a constant mac address as fallback. This may create conflicts
if we have several r8188eu devices on the network.

Suggested-by: Joe Perches <joe@perches.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Reviewed-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220713075552.140927-1-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_halinit.c