mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
ANDROID: GKI: Preserve CRC value for wireless_send_event()
Commitd7c1a9a0ed("wifi: nl80211: validate and configure puncturing bitmap") and commit9b89495e47("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>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user