brcmfmac: don't preset all channels as disabled
authorRafał Miłecki <rafal@milecki.pl>
Sat, 7 Jan 2017 20:36:04 +0000 (21:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Nov 2017 08:23:30 +0000 (09:23 +0100)
commitd8b5d88d219522877b0bed1b5114dddedf042d70
tree08e4fdde92689f42faf10bafc059f13aed01cf0b
parent54a5155afa84d39d4fa92b775213f46f334625b9
brcmfmac: don't preset all channels as disabled

commit 9ea0c307609fd20e03f53546b9cefbb20b96785d upstream.

During init we take care of regulatory stuff by disabling all
unavailable channels (see brcmf_construct_chaninfo) so this predisabling
them is not really required (and this patch won't change any behavior).
It will on the other hand allow more detailed runtime control over
channels which is the main reason for this change.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Cc: Lambdadroid <lambdadroid@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c