Content-Type: multipart/mixed; boundary="===============7929419076174350386==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 12/12] iwlwifi: nvm: Correct HE capability Date: Mon, 31 Jan 2022 11:54:46 +0800 Message-ID: <202201311149.Srfwgzez-lkp@intel.com> In-Reply-To: List-Id: --===============7929419076174350386== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Luca, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v5.17-rc2 next-20220128] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Luca-Coelho/iwlwifi-update= s-intended-for-v5-18-2022-01-30/20220130-175511 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git = f8c7e4ede46fe63ff10000669652648aab09d112 config: microblaze-randconfig-r033-20220130 (https://download.01.org/0day-c= i/archive/20220131/202201311149.Srfwgzez-lkp(a)intel.com/config) compiler: microblaze-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/ac5ced0e583f75e19be739606= 0676562e3dd9cab git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Luca-Coelho/iwlwifi-updates-intend= ed-for-v5-18-2022-01-30/20220130-175511 git checkout ac5ced0e583f75e19be7396060676562e3dd9cab # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dmicroblaze SHELL=3D/bin/bash drivers/net/wireless/int= el/iwlwifi/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c: In function 'iwl_nvm= _fixup_sband_iftd': >> drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c:787:14: error: 'IWL_C= FG_RF_TYPE_MS' undeclared (first use in this function); did you mean 'IWL_C= FG_RF_TYPE_MR'? 787 | case IWL_CFG_RF_TYPE_MS: | ^~~~~~~~~~~~~~~~~~ | IWL_CFG_RF_TYPE_MR drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c:787:14: note: each un= declared identifier is reported only once for each function it appears in vim +787 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c 739 = 740 static void 741 iwl_nvm_fixup_sband_iftd(struct iwl_trans *trans, 742 struct ieee80211_supported_band *sband, 743 struct ieee80211_sband_iftype_data *iftype_data, 744 u8 tx_chains, u8 rx_chains, 745 const struct iwl_fw *fw) 746 { 747 bool is_ap =3D iftype_data->types_mask & BIT(NL80211_IFTYPE_AP); 748 = 749 /* Advertise an A-MPDU exponent extension based on 750 * operating band 751 */ 752 if (sband->band !=3D NL80211_BAND_2GHZ) 753 iftype_data->he_cap.he_cap_elem.mac_cap_info[3] |=3D 754 IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_EXT_1; 755 else 756 iftype_data->he_cap.he_cap_elem.mac_cap_info[3] |=3D 757 IEEE80211_HE_MAC_CAP3_MAX_AMPDU_LEN_EXP_EXT_3; 758 = 759 if (is_ap && iwlwifi_mod_params.nvm_file) 760 iftype_data->he_cap.he_cap_elem.phy_cap_info[0] |=3D 761 IEEE80211_HE_PHY_CAP0_CHANNEL_WIDTH_SET_160MHZ_IN_5G; 762 = 763 if ((tx_chains & rx_chains) =3D=3D ANT_AB) { 764 iftype_data->he_cap.he_cap_elem.phy_cap_info[2] |=3D 765 IEEE80211_HE_PHY_CAP2_STBC_TX_UNDER_80MHZ; 766 iftype_data->he_cap.he_cap_elem.phy_cap_info[5] |=3D 767 IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_UNDER_80MHZ_2 | 768 IEEE80211_HE_PHY_CAP5_BEAMFORMEE_NUM_SND_DIM_ABOVE_80MHZ_2; 769 if (!is_ap) 770 iftype_data->he_cap.he_cap_elem.phy_cap_info[7] |=3D 771 IEEE80211_HE_PHY_CAP7_MAX_NC_2; 772 } else if (!is_ap) { 773 /* If not 2x2, we need to indicate 1x1 in the 774 * Midamble RX Max NSTS - but not for AP mode 775 */ 776 iftype_data->he_cap.he_cap_elem.phy_cap_info[1] &=3D 777 ~IEEE80211_HE_PHY_CAP1_MIDAMBLE_RX_TX_MAX_NSTS; 778 iftype_data->he_cap.he_cap_elem.phy_cap_info[2] &=3D 779 ~IEEE80211_HE_PHY_CAP2_MIDAMBLE_RX_TX_MAX_NSTS; 780 iftype_data->he_cap.he_cap_elem.phy_cap_info[7] |=3D 781 IEEE80211_HE_PHY_CAP7_MAX_NC_1; 782 } 783 = 784 switch (CSR_HW_RFID_TYPE(trans->hw_rf_id)) { 785 case IWL_CFG_RF_TYPE_GF: 786 case IWL_CFG_RF_TYPE_MR: > 787 case IWL_CFG_RF_TYPE_MS: 788 iftype_data->he_cap.he_cap_elem.phy_cap_info[9] |=3D 789 IEEE80211_HE_PHY_CAP9_TX_1024_QAM_LESS_THAN_242_TONE_RU; 790 if (!is_ap) 791 iftype_data->he_cap.he_cap_elem.phy_cap_info[9] |=3D 792 IEEE80211_HE_PHY_CAP9_RX_1024_QAM_LESS_THAN_242_TONE_RU; 793 break; 794 } 795 = 796 if (fw_has_capa(&fw->ucode_capa, IWL_UCODE_TLV_CAPA_BROADCAST_TWT)) 797 iftype_data->he_cap.he_cap_elem.mac_cap_info[2] |=3D 798 IEEE80211_HE_MAC_CAP2_BCAST_TWT; 799 = 800 if (trans->trans_cfg->device_family =3D=3D IWL_DEVICE_FAMILY_22000 = && 801 !is_ap) { 802 iftype_data->vendor_elems.data =3D iwl_vendor_caps; 803 iftype_data->vendor_elems.len =3D ARRAY_SIZE(iwl_vendor_caps); 804 } 805 } 806 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============7929419076174350386==--