diff options
author | Isaac J. Manjarres <isaacmanjarres@google.com> | 2024-02-12 06:18:13 -0800 |
---|---|---|
committer | Isaac J. Manjarres <isaacmanjarres@google.com> | 2024-02-12 06:29:23 -0800 |
commit | 1bbef275768f1289bba69758c3cbf18a3199e0e3 (patch) | |
tree | 74706e35a7602c3330f5fde592f886b9de2dbbd4 | |
parent | 6fba8c7e3472d8bba7e479e241b6bbcaced6ec36 (diff) | |
download | common-1bbef275768f1289bba69758c3cbf18a3199e0e3.tar.gz |
ANDROID: GKI: Preserve CRC value for wireless_send_event()
Commit d7c1a9a0ed18 ("wifi: nl80211: validate and configure puncturing
bitmap") and commit 9b89495e479c ("wifi: nl80211: Allow authentication
frames and set keys on NAN interface") added two entries to the
nl80211_ext_feature_index enum, which caused the CRC value for the
wireless_send_event() symbol to change.
Fix this by hiding the new enum entries during the CRC generation phase.
While the values of NUM_NL80211_EXT_FEATURES and
MAX_NL80211_EXT_FEATURES have changed, it shouldn't be a problem in this
case, since MAX_NL80211_EXT_FEATURES is not used in the kernel source,
and the one usage of NUM_NL80211_EXT_FEATURES remains unchanged.
Bug: 272227555
Bug: 324871355
Change-Id: I8b5be4c39b1ab72f0f2b3c9ff10f15a981a431db
Signed-off-by: Isaac J. Manjarres <isaacmanjarres@google.com>
-rw-r--r-- | include/uapi/linux/nl80211.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h index 75f7aa80bda8..c26638050db2 100644 --- a/include/uapi/linux/nl80211.h +++ b/include/uapi/linux/nl80211.h @@ -6374,8 +6374,14 @@ enum nl80211_ext_feature_index { NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD, NL80211_EXT_FEATURE_RADAR_BACKGROUND, NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE, + /* + * ANDROID CRC kabi preservation hack due to commits d7c1a9a0ed18 + * and 9b89495e479c. + */ +#ifndef __GENKSYMS__ NL80211_EXT_FEATURE_PUNCT, NL80211_EXT_FEATURE_SECURE_NAN, +#endif /* add new features before the definition below */ NUM_NL80211_EXT_FEATURES, |