brcmfmac: add 160MHz in chandef_to_chanspec()
authorArend van Spriel <arend.vanspriel@broadcom.com>
Thu, 11 Jul 2019 08:45:30 +0000 (10:45 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Jul 2019 11:49:52 +0000 (14:49 +0300)
commitf491645f039420fb7e14283e21b90772571c807c
tree17cc1014e44fcb0e2ccac9ca05bafb647fede88f
parent29b68a920f6abb7b5ba21ab4b779f62d536bac9b
brcmfmac: add 160MHz in chandef_to_chanspec()

The function chandef_to_chanspec() was not handling 160MHz bandwidth
resulting in wrong encoding of the channel. That resulting in firmware
rejecting the provided channel specification.

Reviewed-by: Hante Meuleman <hante.meuleman@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>
Reviewed-by: Franky Lin <franky.lin@broadcom.com>
Signed-off-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c