brcmfmac: add RSDB condition when setting interface combinations
authorWright Feng <wright.feng@cypress.com>
Wed, 11 Dec 2019 23:52:50 +0000 (00:52 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 18 Dec 2019 19:07:44 +0000 (21:07 +0200)
commit837482e69a3f0d7cbc73922020012f83635f5ddb
tree10884f0c98078ca51e69903ced262659f49b6a46
parentd4aef159394d5940bd7158ab789969dab82f7c76
brcmfmac: add RSDB condition when setting interface combinations

With firmware RSDB feature
1. The maximum support interface is four.
2. The maximum difference channel is two.
3. The maximum interfaces of {station/p2p client/AP} are two.
4. The maximum interface of p2p device is one.

Signed-off-by: Wright Feng <wright.feng@cypress.com>
Signed-off-by: Soeren Moch <smoch@web.de>
Reviewed-by: Chi-Hsien Lin <chi-hsien.lin@cypress.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c