brcmfmac: use static superset of channels for wiphy bands
authorArend van Spriel <arend@broadcom.com>
Tue, 14 Apr 2015 18:10:24 +0000 (20:10 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 9 May 2015 13:26:46 +0000 (16:26 +0300)
commit58de92d2f95e91162ac036938010bbd8db715bde
treec0eaddb03928d97fa65fe88cd48af3bbacc7410d
parent9ab7b5b9b16025dab62b0f2c8d7f54cfce76e9c1
brcmfmac: use static superset of channels for wiphy bands

The driver was constructing a list of channels per wiphy band
by querying the device. This list is not what the hardware is
able to do as it is already filtered by the country setting in
the device. As user-space may change the country this would
require updating the channel list which is not recommended [1].
This patch introduces a superset of channels. The individual
channels are disabled appropriately by querying the device.

[1] http://mid.gmane.org/1426706320.3001.21.camel@sipsolutions.net

Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/brcm80211/brcmfmac/cfg80211.c