Search Linux Wireless

Re: [PATCH 01/13] wifi: iwlwifi: nvm: parse the VLP/AFC bit from regulatory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Miri,

kernel test robot noticed the following build errors:

[auto build test ERROR on wireless-next/main]
[also build test ERROR on wireless/main linus/master v6.8-rc3 next-20240209]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Miri-Korenblit/wifi-iwlwifi-nvm-parse-the-VLP-AFC-bit-from-regulatory/20240209-010143
base:   https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main
patch link:    https://lore.kernel.org/r/20240208185302.9c6a4acabdb3.I501de5c0d86b9702bf61158a2e91c954a1da9a2a%40changeid
patch subject: [PATCH 01/13] wifi: iwlwifi: nvm: parse the VLP/AFC bit from regulatory
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20240210/202402102159.h0x3mL2v-lkp@xxxxxxxxx/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 7dd790db8b77c4a833c06632e903dc4f13877a64)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240210/202402102159.h0x3mL2v-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402102159.h0x3mL2v-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c:377:12: error: use of undeclared identifier 'IEEE80211_CHAN_NO_6GHZ_VLP_CLIENT'; did you mean 'IEEE80211_CHAN_NO_UHB_VLP_CLIENT'?
     377 |                 flags |= IEEE80211_CHAN_NO_6GHZ_VLP_CLIENT;
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                          IEEE80211_CHAN_NO_UHB_VLP_CLIENT
   include/net/cfg80211.h:149:2: note: 'IEEE80211_CHAN_NO_UHB_VLP_CLIENT' declared here
     149 |         IEEE80211_CHAN_NO_UHB_VLP_CLIENT= 1<<22,
         |         ^
>> drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c:379:12: error: use of undeclared identifier 'IEEE80211_CHAN_NO_6GHZ_AFC_CLIENT'; did you mean 'IEEE80211_CHAN_NO_UHB_AFC_CLIENT'?
     379 |                 flags |= IEEE80211_CHAN_NO_6GHZ_AFC_CLIENT;
         |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                          IEEE80211_CHAN_NO_UHB_AFC_CLIENT
   include/net/cfg80211.h:150:2: note: 'IEEE80211_CHAN_NO_UHB_AFC_CLIENT' declared here
     150 |         IEEE80211_CHAN_NO_UHB_AFC_CLIENT= 1<<23,
         |         ^
>> drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c:1665:13: error: use of undeclared identifier 'NL80211_RRF_NO_6GHZ_VLP_CLIENT'; did you mean 'NL80211_RRF_NO_UHB_VLP_CLIENT'?
    1665 |                         flags |= NL80211_RRF_NO_6GHZ_VLP_CLIENT;
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                  NL80211_RRF_NO_UHB_VLP_CLIENT
   include/uapi/linux/nl80211.h:4543:2: note: 'NL80211_RRF_NO_UHB_VLP_CLIENT' declared here
    4543 |         NL80211_RRF_NO_UHB_VLP_CLIENT   = 1<<22,
         |         ^
>> drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c:1668:13: error: use of undeclared identifier 'NL80211_RRF_NO_6GHZ_AFC_CLIENT'; did you mean 'NL80211_RRF_NO_UHB_AFC_CLIENT'?
    1668 |                         flags |= NL80211_RRF_NO_6GHZ_AFC_CLIENT;
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                  NL80211_RRF_NO_UHB_AFC_CLIENT
   include/uapi/linux/nl80211.h:4544:2: note: 'NL80211_RRF_NO_UHB_AFC_CLIENT' declared here
    4544 |         NL80211_RRF_NO_UHB_AFC_CLIENT   = 1<<23,
         |         ^
   4 errors generated.


vim +377 drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c

   334	
   335	static u32 iwl_get_channel_flags(u8 ch_num, int ch_idx, enum nl80211_band band,
   336					 u32 nvm_flags, const struct iwl_cfg *cfg)
   337	{
   338		u32 flags = IEEE80211_CHAN_NO_HT40;
   339	
   340		if (band == NL80211_BAND_2GHZ && (nvm_flags & NVM_CHANNEL_40MHZ)) {
   341			if (ch_num <= LAST_2GHZ_HT_PLUS)
   342				flags &= ~IEEE80211_CHAN_NO_HT40PLUS;
   343			if (ch_num >= FIRST_2GHZ_HT_MINUS)
   344				flags &= ~IEEE80211_CHAN_NO_HT40MINUS;
   345		} else if (nvm_flags & NVM_CHANNEL_40MHZ) {
   346			if ((ch_idx - NUM_2GHZ_CHANNELS) % 2 == 0)
   347				flags &= ~IEEE80211_CHAN_NO_HT40PLUS;
   348			else
   349				flags &= ~IEEE80211_CHAN_NO_HT40MINUS;
   350		}
   351		if (!(nvm_flags & NVM_CHANNEL_80MHZ))
   352			flags |= IEEE80211_CHAN_NO_80MHZ;
   353		if (!(nvm_flags & NVM_CHANNEL_160MHZ))
   354			flags |= IEEE80211_CHAN_NO_160MHZ;
   355	
   356		if (!(nvm_flags & NVM_CHANNEL_IBSS))
   357			flags |= IEEE80211_CHAN_NO_IR;
   358	
   359		if (!(nvm_flags & NVM_CHANNEL_ACTIVE))
   360			flags |= IEEE80211_CHAN_NO_IR;
   361	
   362		if (nvm_flags & NVM_CHANNEL_RADAR)
   363			flags |= IEEE80211_CHAN_RADAR;
   364	
   365		if (nvm_flags & NVM_CHANNEL_INDOOR_ONLY)
   366			flags |= IEEE80211_CHAN_INDOOR_ONLY;
   367	
   368		/* Set the GO concurrent flag only in case that NO_IR is set.
   369		 * Otherwise it is meaningless
   370		 */
   371		if ((nvm_flags & NVM_CHANNEL_GO_CONCURRENT) &&
   372		    (flags & IEEE80211_CHAN_NO_IR))
   373			flags |= IEEE80211_CHAN_IR_CONCURRENT;
   374	
   375		/* Set the AP type for the UHB case. */
   376		if (!(nvm_flags & NVM_CHANNEL_VLP))
 > 377			flags |= IEEE80211_CHAN_NO_6GHZ_VLP_CLIENT;
   378		if (!(nvm_flags & NVM_CHANNEL_AFC))
 > 379			flags |= IEEE80211_CHAN_NO_6GHZ_AFC_CLIENT;
   380	
   381		return flags;
   382	}
   383	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux