MLK-19517-12 brcmfmac: only generate random p2p address when needed
authorChi-Hsien Lin <chi-hsien.lin@cypress.com>
Fri, 1 Jun 2018 10:22:05 +0000 (05:22 -0500)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit3d119dd75c30163feba46a5f95aa7b791c825bb5
treeb27c6e83761b04ccc42eee2c280ca74e6dd6ee0e
parent5bee4ae61287ea2d68f55e10bd85f4d276acce03
MLK-19517-12 brcmfmac: only generate random p2p address when needed

P2p spec mentioned that the p2p device address should be the globally
administered address with locally administered bit set. Therefore,
follow this guideline by default.

When the primary interface is set to a locally administered address, the
locally administered bit cannot be set again. Generate a random locally
administered address for this case.

Signed-off-by: Chi-Hsien Lin <chi-hsien.lin@cypress.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
(cherry picked from commit:930ac6e9230a48a775e55ee6cb31c4dffe5d5dcc)
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/p2p.c