brcmfmac: improve code handling bandwidth of firmware reported channels
authorRafał Miłecki <rafal@milecki.pl>
Mon, 11 Feb 2019 22:04:53 +0000 (23:04 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 19 Feb 2019 15:06:36 +0000 (17:06 +0200)
commitf4e183293b871c96c0220dcc549d5ca4c72628ad
tree7b45bce080b9e2567245e100384ec89c21b1875b
parentc988b78244df8216902e20de536434e2f474a37e
brcmfmac: improve code handling bandwidth of firmware reported channels

1) Use switch to simplify/improve the code & avoid some duplication
2) Add warning for unsupported values

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c