Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [ath:master 2/4] net/wireless/nl80211.c:6993:36: error: no member named 'he_oper' in 'struct cfg80211_ap_settings'
@ 2026-06-05  6:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-05  6:00 UTC (permalink / raw)
  To: Johannes Berg; +Cc: llvm, oe-kbuild-all, Jeff Johnson, ath12k, Jeff Johnson

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/ath/ath.git master
head:   d54e5a797eebf0ef8c91f628aac578128b39a0b1
commit: da16cf9abfd30e79c6c7ed7c4f8bf8b1316b934b [2/4] Merge remote-tracking branch 'wireless-next/main'
config: sparc64-randconfig-002-20260605 (https://download.01.org/0day-ci/archive/20260605/202606051350.TYjbkXmP-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 7917772d7d61384696c61102c08c2ea158e610fa)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260605/202606051350.TYjbkXmP-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606051350.TYjbkXmP-lkp@intel.com/

All errors (new ones prefixed by >>):

>> net/wireless/nl80211.c:6993:36: error: no member named 'he_oper' in 'struct cfg80211_ap_settings'
    6993 |         if (!!params->he_cap != !!params->he_oper)
         |                                   ~~~~~~  ^
>> net/wireless/nl80211.c:6996:37: error: no member named 'eht_oper' in 'struct cfg80211_ap_settings'
    6996 |         if (!!params->eht_cap != !!params->eht_oper)
         |                                    ~~~~~~  ^
   2 errors generated.


vim +6993 net/wireless/nl80211.c

7443dcd1f1718a Aloka Dixit   2020-09-11  6942  
66cd794e3c30b8 Johannes Berg 2017-02-07  6943  /*
66cd794e3c30b8 Johannes Berg 2017-02-07  6944   * Since the nl80211 API didn't include, from the beginning, attributes about
a384ae96990250 Johannes Berg 2026-04-15  6945   * HT/VHT/... capabilities, we parse them out of the elements and check for
a384ae96990250 Johannes Berg 2026-04-15  6946   * validity for use by drivers/mac80211.
66cd794e3c30b8 Johannes Berg 2017-02-07  6947   */
d642e759b73cbf Johannes Berg 2026-04-15  6948  static int nl80211_calculate_ap_capabilities(struct genl_info *info,
d642e759b73cbf Johannes Berg 2026-04-15  6949  					     struct cfg80211_ap_settings *params)
66cd794e3c30b8 Johannes Berg 2017-02-07  6950  {
a384ae96990250 Johannes Berg 2026-04-15  6951  	size_t ies_len = params->beacon.tail_len;
a384ae96990250 Johannes Berg 2026-04-15  6952  	const u8 *ies = params->beacon.tail;
153e2a11c99b73 Johannes Berg 2021-09-30  6953  	const struct element *cap;
66cd794e3c30b8 Johannes Berg 2017-02-07  6954  
153e2a11c99b73 Johannes Berg 2021-09-30  6955  	cap = cfg80211_find_elem(WLAN_EID_HT_CAPABILITY, ies, ies_len);
d642e759b73cbf Johannes Berg 2026-04-15  6956  	if (cap) {
d642e759b73cbf Johannes Berg 2026-04-15  6957  		if (cap->datalen < sizeof(*params->ht_cap)) {
d642e759b73cbf Johannes Berg 2026-04-15  6958  			GENL_SET_ERR_MSG(info, "bad HT capability in beacon");
d642e759b73cbf Johannes Berg 2026-04-15  6959  			return -EINVAL;
d642e759b73cbf Johannes Berg 2026-04-15  6960  		}
153e2a11c99b73 Johannes Berg 2021-09-30  6961  		params->ht_cap = (void *)cap->data;
d642e759b73cbf Johannes Berg 2026-04-15  6962  	}
d642e759b73cbf Johannes Berg 2026-04-15  6963  
153e2a11c99b73 Johannes Berg 2021-09-30  6964  	cap = cfg80211_find_elem(WLAN_EID_VHT_CAPABILITY, ies, ies_len);
d642e759b73cbf Johannes Berg 2026-04-15  6965  	if (cap) {
d642e759b73cbf Johannes Berg 2026-04-15  6966  		if (cap->datalen < sizeof(*params->vht_cap)) {
d642e759b73cbf Johannes Berg 2026-04-15  6967  			GENL_SET_ERR_MSG(info, "bad VHT capability in beacon");
d642e759b73cbf Johannes Berg 2026-04-15  6968  			return -EINVAL;
d642e759b73cbf Johannes Berg 2026-04-15  6969  		}
153e2a11c99b73 Johannes Berg 2021-09-30  6970  		params->vht_cap = (void *)cap->data;
d642e759b73cbf Johannes Berg 2026-04-15  6971  	}
d642e759b73cbf Johannes Berg 2026-04-15  6972  
153e2a11c99b73 Johannes Berg 2021-09-30  6973  	cap = cfg80211_find_ext_elem(WLAN_EID_EXT_HE_CAPABILITY, ies, ies_len);
d642e759b73cbf Johannes Berg 2026-04-15  6974  	if (cap) {
d642e759b73cbf Johannes Berg 2026-04-15  6975  		if (cap->datalen < sizeof(*params->he_cap) + 1) {
d642e759b73cbf Johannes Berg 2026-04-15  6976  			GENL_SET_ERR_MSG(info, "bad HE capability in beacon");
d642e759b73cbf Johannes Berg 2026-04-15  6977  			return -EINVAL;
d642e759b73cbf Johannes Berg 2026-04-15  6978  		}
153e2a11c99b73 Johannes Berg 2021-09-30  6979  		params->he_cap = (void *)(cap->data + 1);
d642e759b73cbf Johannes Berg 2026-04-15  6980  	}
d642e759b73cbf Johannes Berg 2026-04-15  6981  
8bc65d38ee4668 Aloka Dixit   2022-05-22  6982  	cap = cfg80211_find_ext_elem(WLAN_EID_EXT_EHT_CAPABILITY, ies, ies_len);
8bc65d38ee4668 Aloka Dixit   2022-05-22  6983  	if (cap) {
8bc65d38ee4668 Aloka Dixit   2022-05-22  6984  		params->eht_cap = (void *)(cap->data + 1);
8bc65d38ee4668 Aloka Dixit   2022-05-22  6985  		if (!ieee80211_eht_capa_size_ok((const u8 *)params->he_cap,
8bc65d38ee4668 Aloka Dixit   2022-05-22  6986  						(const u8 *)params->eht_cap,
d642e759b73cbf Johannes Berg 2026-04-15  6987  						cap->datalen - 1, true)) {
d642e759b73cbf Johannes Berg 2026-04-15  6988  			GENL_SET_ERR_MSG(info, "bad EHT capability in beacon");
8bc65d38ee4668 Aloka Dixit   2022-05-22  6989  			return -EINVAL;
8bc65d38ee4668 Aloka Dixit   2022-05-22  6990  		}
8bc65d38ee4668 Aloka Dixit   2022-05-22  6991  	}
072e6f7f416f5d Johannes Berg 2026-01-30  6992  
cb9959ab5f9961 Johannes Berg 2026-06-03 @6993  	if (!!params->he_cap != !!params->he_oper)
cb9959ab5f9961 Johannes Berg 2026-06-03  6994  		return -EINVAL;
cb9959ab5f9961 Johannes Berg 2026-06-03  6995  
cb9959ab5f9961 Johannes Berg 2026-06-03 @6996  	if (!!params->eht_cap != !!params->eht_oper)
cb9959ab5f9961 Johannes Berg 2026-06-03  6997  		return -EINVAL;
cb9959ab5f9961 Johannes Berg 2026-06-03  6998  
8bc65d38ee4668 Aloka Dixit   2022-05-22  6999  	return 0;
66cd794e3c30b8 Johannes Berg 2017-02-07  7000  }
66cd794e3c30b8 Johannes Berg 2017-02-07  7001  

:::::: The code at line 6993 was first introduced by commit
:::::: cb9959ab5f99611d27a06586add84811fe8102dc wifi: cfg80211: enforce HE/EHT cap/oper consistency

:::::: TO: Johannes Berg <johannes.berg@intel.com>
:::::: CC: Johannes Berg <johannes.berg@intel.com>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-05  6:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-05  6:00 [ath:master 2/4] net/wireless/nl80211.c:6993:36: error: no member named 'he_oper' in 'struct cfg80211_ap_settings' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox