]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: utilize random MAC address if none is provided
authorBrian Norris <briannorris@chromium.org>
Fri, 7 Sep 2018 17:21:57 +0000 (10:21 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 1 Oct 2018 13:53:51 +0000 (16:53 +0300)
commit16d1428cc8d64572fa5e636bca9dfcfb9c9d98a6
tree8afcac82d47b48dbd5da81a19801abdd02d36f4c
parent96d8f6f32a713d30d1ee65f35f7a49994bec6d07
ath10k: utilize random MAC address if none is provided

Since commit ed5c0d73fc52 ("ath10k: retrieve MAC address from system
firmware if provided"), we support pulling our MAC address from system
firmware. Along with this, we should admit that it's possible for system
firmware to be screwed up as well, omitting the MAC address there.

Provide a fallback, such that we choose a randomly-generated MAC
address, with the local assignment bit set.

This is not a preferred mode of operation and really should only serve
the purpose of keeping the system chugging along while someone figures
out what's wrong with the system. Grepping through other wireless
drivers shows very similar fallback logic though, so why not?

  git grep eth_random_addr drivers/net/wireless/

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/mac.c