]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
iwlwifi: trust calling function
authorShaul Triebitz <shaul.triebitz@intel.com>
Sun, 17 Feb 2019 08:42:12 +0000 (10:42 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Wed, 3 Apr 2019 08:19:58 +0000 (11:19 +0300)
When initializing or overriding HE band capabilities, no
need to check the band validity.
Trust the calling function to use a valid band.

Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c

index e8ee510fdd4b27f859861eb2880bfb7ddbb99523..40985dc552b8596f210318400fa06e99a76d9e61 100644 (file)
@@ -651,12 +651,7 @@ static struct ieee80211_sband_iftype_data iwl_he_capa[] = {
 static void iwl_init_he_hw_capab(struct ieee80211_supported_band *sband,
                                 u8 tx_chains, u8 rx_chains)
 {
-       if (sband->band == NL80211_BAND_2GHZ ||
-           sband->band == NL80211_BAND_5GHZ)
-               sband->iftype_data = iwl_he_capa;
-       else
-               return;
-
+       sband->iftype_data = iwl_he_capa;
        sband->n_iftype_data = ARRAY_SIZE(iwl_he_capa);
 
        /* If not 2x2, we need to indicate 1x1 in the Midamble RX Max NSTS */