cfg80211: remove enum ieee80211_band
This enum is already perfectly aliased to enum nl80211_band, and the only reason for it is that we get IEEE80211_NUM_BANDS out of it. There's no really good reason to not declare the number of bands in nl80211 though, so do that and remove the cfg80211 one. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -849,9 +849,9 @@ static int wsm_startup_indication(struct cw1200_common *priv,
|
||||
|
||||
/* Disable unsupported frequency bands */
|
||||
if (!(priv->wsm_caps.fw_cap & 0x1))
|
||||
priv->hw->wiphy->bands[IEEE80211_BAND_2GHZ] = NULL;
|
||||
priv->hw->wiphy->bands[NL80211_BAND_2GHZ] = NULL;
|
||||
if (!(priv->wsm_caps.fw_cap & 0x2))
|
||||
priv->hw->wiphy->bands[IEEE80211_BAND_5GHZ] = NULL;
|
||||
priv->hw->wiphy->bands[NL80211_BAND_5GHZ] = NULL;
|
||||
|
||||
priv->firmware_ready = 1;
|
||||
wake_up(&priv->wsm_startup_done);
|
||||
|
مرجع در شماره جدید
Block a user