From: kernel test robot <lkp@intel.com>
To: "Pablo Martin-Gomez" <pmartin-gomez@freebox.fr>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
0day robot <lkp@intel.com>
Subject: include/linux/ieee80211-eht.h:1138:18: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_256US'
Date: Tue, 14 Apr 2026 03:22:49 +0200 [thread overview]
Message-ID: <202604140301.5LUR4ruV-lkp@intel.com> (raw)
tree: https://github.com/intel-lab-lkp/linux/commits/Pablo-Martin-Gomez/wifi-Remove-invalid-128TU-transition-timeout-constant/20260413-194835
head: 61f7ec5db10fc67eca270c36d5d0a305ad4ae302
commit: 274ef51c760e8aa7814ed480bcc56ee6fbdd546a wifi: Rename EMLSR delay constants and add EMLMR helpers and definitions
date: 14 hours ago
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260414/202604140301.5LUR4ruV-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260414/202604140301.5LUR4ruV-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/202604140301.5LUR4ruV-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from net/mac80211/main.c:11:
In file included from include/net/mac80211.h:20:
In file included from include/linux/ieee80211.h:2851:
>> include/linux/ieee80211-eht.h:1138:18: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_256US'
1138 | pad_delay > IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_256US)
| ^
>> include/linux/ieee80211-eht.h:1188:25: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLMR_SUPP'
1188 | u16_get_bits(eml_cap, IEEE80211_EML_CAP_EMLMR_SUPP);
| ^
>> include/linux/ieee80211-eht.h:1200:18: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLMR_PADDING_DELAY_256US'
1200 | pad_delay > IEEE80211_EML_CAP_EMLMR_PADDING_DELAY_256US)
| ^
include/linux/ieee80211-eht.h:1218:25: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLMR_SUPP'
1218 | u16_get_bits(eml_cap, IEEE80211_EML_CAP_EMLMR_SUPP);
| ^
4 errors generated.
--
In file included from net/mac80211/eht.c:8:
In file included from net/mac80211/driver-ops.h:12:
In file included from include/net/mac80211.h:20:
In file included from include/linux/ieee80211.h:2851:
>> include/linux/ieee80211-eht.h:1138:18: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_256US'
1138 | pad_delay > IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_256US)
| ^
>> include/linux/ieee80211-eht.h:1188:25: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLMR_SUPP'
1188 | u16_get_bits(eml_cap, IEEE80211_EML_CAP_EMLMR_SUPP);
| ^
>> include/linux/ieee80211-eht.h:1200:18: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLMR_PADDING_DELAY_256US'
1200 | pad_delay > IEEE80211_EML_CAP_EMLMR_PADDING_DELAY_256US)
| ^
include/linux/ieee80211-eht.h:1218:25: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLMR_SUPP'
1218 | u16_get_bits(eml_cap, IEEE80211_EML_CAP_EMLMR_SUPP);
| ^
>> net/mac80211/eht.c:207:8: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_256US'
207 | IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_256US)
| ^
5 errors generated.
--
In file included from eht.c:8:
In file included from ./driver-ops.h:12:
In file included from include/net/mac80211.h:20:
In file included from include/linux/ieee80211.h:2851:
>> include/linux/ieee80211-eht.h:1138:18: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_256US'
1138 | pad_delay > IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_256US)
| ^
>> include/linux/ieee80211-eht.h:1188:25: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLMR_SUPP'
1188 | u16_get_bits(eml_cap, IEEE80211_EML_CAP_EMLMR_SUPP);
| ^
>> include/linux/ieee80211-eht.h:1200:18: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLMR_PADDING_DELAY_256US'
1200 | pad_delay > IEEE80211_EML_CAP_EMLMR_PADDING_DELAY_256US)
| ^
include/linux/ieee80211-eht.h:1218:25: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLMR_SUPP'
1218 | u16_get_bits(eml_cap, IEEE80211_EML_CAP_EMLMR_SUPP);
| ^
eht.c:207:8: error: use of undeclared identifier 'IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_256US'
207 | IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_256US)
| ^
5 errors generated.
vim +/IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_256US +1138 include/linux/ieee80211-eht.h
86bc0c662322b4 Johannes Berg 2025-11-05 1113
86bc0c662322b4 Johannes Berg 2025-11-05 1114 /**
86bc0c662322b4 Johannes Berg 2025-11-05 1115 * ieee80211_emlsr_pad_delay_in_us - Fetch the EMLSR Padding delay
86bc0c662322b4 Johannes Berg 2025-11-05 1116 * in microseconds
86bc0c662322b4 Johannes Berg 2025-11-05 1117 * @eml_cap: EML capabilities field value from common info field of
86bc0c662322b4 Johannes Berg 2025-11-05 1118 * the Multi-link element
86bc0c662322b4 Johannes Berg 2025-11-05 1119 * Return: the EMLSR Padding delay (in microseconds) encoded in the
86bc0c662322b4 Johannes Berg 2025-11-05 1120 * EML Capabilities field
86bc0c662322b4 Johannes Berg 2025-11-05 1121 */
86bc0c662322b4 Johannes Berg 2025-11-05 1122
86bc0c662322b4 Johannes Berg 2025-11-05 1123 static inline u32 ieee80211_emlsr_pad_delay_in_us(u16 eml_cap)
86bc0c662322b4 Johannes Berg 2025-11-05 1124 {
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1125 u32 emlsr_supp =
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1126 u16_get_bits(eml_cap, IEEE80211_EML_CAP_EMLSR_SUPP);
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1127
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1128 if (!emlsr_supp)
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1129 return 0;
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1130
86bc0c662322b4 Johannes Berg 2025-11-05 1131 /* IEEE Std 802.11be-2024 Table 9-417i—Encoding of the EMLSR
86bc0c662322b4 Johannes Berg 2025-11-05 1132 * Padding Delay subfield.
86bc0c662322b4 Johannes Berg 2025-11-05 1133 */
86bc0c662322b4 Johannes Berg 2025-11-05 1134 u32 pad_delay = u16_get_bits(eml_cap,
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1135 IEEE80211_EML_CAP_EML_PADDING_DELAY);
86bc0c662322b4 Johannes Berg 2025-11-05 1136
86bc0c662322b4 Johannes Berg 2025-11-05 1137 if (!pad_delay ||
86bc0c662322b4 Johannes Berg 2025-11-05 @1138 pad_delay > IEEE80211_EML_CAP_EMLSR_PADDING_DELAY_256US)
86bc0c662322b4 Johannes Berg 2025-11-05 1139 return 0;
86bc0c662322b4 Johannes Berg 2025-11-05 1140
86bc0c662322b4 Johannes Berg 2025-11-05 1141 return 32 * (1 << (pad_delay - 1));
86bc0c662322b4 Johannes Berg 2025-11-05 1142 }
86bc0c662322b4 Johannes Berg 2025-11-05 1143
86bc0c662322b4 Johannes Berg 2025-11-05 1144 /**
86bc0c662322b4 Johannes Berg 2025-11-05 1145 * ieee80211_emlsr_trans_delay_in_us - Fetch the EMLSR Transition
86bc0c662322b4 Johannes Berg 2025-11-05 1146 * delay in microseconds
86bc0c662322b4 Johannes Berg 2025-11-05 1147 * @eml_cap: EML capabilities field value from common info field of
86bc0c662322b4 Johannes Berg 2025-11-05 1148 * the Multi-link element
86bc0c662322b4 Johannes Berg 2025-11-05 1149 * Return: the EMLSR Transition delay (in microseconds) encoded in the
86bc0c662322b4 Johannes Berg 2025-11-05 1150 * EML Capabilities field
86bc0c662322b4 Johannes Berg 2025-11-05 1151 */
86bc0c662322b4 Johannes Berg 2025-11-05 1152
86bc0c662322b4 Johannes Berg 2025-11-05 1153 static inline u32 ieee80211_emlsr_trans_delay_in_us(u16 eml_cap)
86bc0c662322b4 Johannes Berg 2025-11-05 1154 {
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1155 u32 emlsr_supp =
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1156 u16_get_bits(eml_cap, IEEE80211_EML_CAP_EMLSR_SUPP);
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1157
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1158 if (!emlsr_supp)
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1159 return 0;
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1160
86bc0c662322b4 Johannes Berg 2025-11-05 1161 /* IEEE Std 802.11be-2024 Table 9-417j—Encoding of the EMLSR
86bc0c662322b4 Johannes Berg 2025-11-05 1162 * Transition Delay subfield.
86bc0c662322b4 Johannes Berg 2025-11-05 1163 */
86bc0c662322b4 Johannes Berg 2025-11-05 1164 u32 trans_delay =
86bc0c662322b4 Johannes Berg 2025-11-05 1165 u16_get_bits(eml_cap,
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1166 IEEE80211_EML_CAP_EML_TRANSITION_DELAY);
86bc0c662322b4 Johannes Berg 2025-11-05 1167
86bc0c662322b4 Johannes Berg 2025-11-05 1168 /* invalid values also just use 0 */
86bc0c662322b4 Johannes Berg 2025-11-05 1169 if (!trans_delay ||
86bc0c662322b4 Johannes Berg 2025-11-05 1170 trans_delay > IEEE80211_EML_CAP_EMLSR_TRANSITION_DELAY_256US)
86bc0c662322b4 Johannes Berg 2025-11-05 1171 return 0;
86bc0c662322b4 Johannes Berg 2025-11-05 1172
86bc0c662322b4 Johannes Berg 2025-11-05 1173 return 16 * (1 << (trans_delay - 1));
86bc0c662322b4 Johannes Berg 2025-11-05 1174 }
86bc0c662322b4 Johannes Berg 2025-11-05 1175
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1176 /**
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1177 * ieee80211_emlmr_pad_delay_in_us - Fetch the EMLMR Padding delay
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1178 * in microseconds
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1179 * @eml_cap: EML capabilities field value from common info field of
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1180 * the Multi-link element
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1181 * Return: the EMLMR Padding delay (in microseconds) encoded in the
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1182 * EML Capabilities field
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1183 */
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1184
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1185 static inline u32 ieee80211_emlmr_pad_delay_in_us(u16 eml_cap)
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1186 {
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1187 u32 emlmr_supp =
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 @1188 u16_get_bits(eml_cap, IEEE80211_EML_CAP_EMLMR_SUPP);
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1189
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1190 if (!emlmr_supp)
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1191 return 0;
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1192
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1193 /* IEEE Std 802.11be-2024 Table 9-417k—Encoding of the EMLMR
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1194 * Padding Delay subfield.
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1195 */
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1196 u32 pad_delay = u16_get_bits(eml_cap,
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1197 IEEE80211_EML_CAP_EML_PADDING_DELAY);
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1198
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1199 if (!pad_delay ||
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 @1200 pad_delay > IEEE80211_EML_CAP_EMLMR_PADDING_DELAY_256US)
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1201 return 0;
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1202
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1203 return 32 * (1 << (pad_delay - 1));
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1204 }
274ef51c760e8a Pablo Martin-Gomez 2026-04-09 1205
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-04-14 1:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202604140301.5LUR4ruV-lkp@intel.com \
--to=lkp@intel.com \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pmartin-gomez@freebox.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox