OSDN Git Service

qtnfmac: control qtnfmac wireless interfaces bridging
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Thu, 9 Jan 2020 13:17:53 +0000 (16:17 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 15:44:00 +0000 (17:44 +0200)
commite14291752e568bf936907be7f11ae3cc39d89fd2
treed2bfcb6f00eed779796965b4b43284ffaab66653
parent155b424c86f8169b30d30beb46ad216c5e61749a
qtnfmac: control qtnfmac wireless interfaces bridging

Bridging qtnfmac interfaces is possible only if the following two
conditions are fulfilled:
- firmware advertises proper support with QLINK_HW_CAPAB_HW_BRIDGE
- kernel is built with CONFIG_NET_SWITCHDEV support

Otherwise adding qtnfmac wireless interfaces into the same bridge
should not be allowed since packets flooded by kernel may break
internal forwarding rules between interfaces.

This patch disables adding qtnfmac wireless interfaces into the
same bridge if no support is provided either by card or by kernel.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/core.c