brcmfmac: check all combinations when setting wiphy's addresses
commit50f32e2d1044b1f1658a1e40c8831969a30ca6a1
authorRafał Miłecki <zajec5@gmail.com>
Wed, 19 Aug 2015 22:16:42 +0000 (20 00:16 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Aug 2015 12:26:34 +0000 (25 15:26 +0300)
treee7fb54cffbbcd2b35ebe3a3536fb7a90e68e810b
parent1642d09fb9b128e8e538b2a4179962a34f38dff9
brcmfmac: check all combinations when setting wiphy's addresses

Broadcom is working on better reflection of interface combinations. With
upcoming patches we may have 1st combination supporting less interfaces
than others.
To don't run out of addresses check all combinations to find the one
with the greatest max_interfaces value.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c