]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: setup wiphy bands after registering it first
authorRafał Miłecki <rafal@milecki.pl>
Sat, 7 Jan 2017 20:36:05 +0000 (21:36 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 17 Jan 2017 12:01:10 +0000 (14:01 +0200)
commit59f653c46c1a2c51c73561efcffb2d796a4dfa46
treef114127424bfec730636a8fc59e6c99aa87814cb
parent8c23632c8e9b1ec0e2f2564cebdd1bc7ff47c578
brcmfmac: setup wiphy bands after registering it first

During bands setup we disable all channels that firmware doesn't support
in the current regulatory setup. If we do this before wiphy_register
it will result in copying set flags (including IEEE80211_CHAN_DISABLED)
to the orig_flags which is supposed to be persistent. We don't want this
as regulatory change may result in enabling some channels. We shouldn't
mess with orig_flags then (by changing them or ignoring them) so it's
better to just take care of their proper values.

This patch cleanups code a bit (by taking orig_flags more seriously) and
allows further improvements like disabling really unavailable channels.
We will need that e.g. if some frequencies should be disabled for good
due to hardware setup (design).

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