Add support to use a random local address (Address 2 = TA in transmit and the same address in receive functionality) for Public Action frames in order to improve privacy of WLAN clients. Applications fill the random transmit address in the frame buffer in the NL80211_CMD_FRAME command. This can be used only with the drivers that indicate support for random local address by setting the new NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA and/or NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED in ext_features. The driver needs to configure receive behavior to accept frames to the specified random address during the time the frame exchange is pending and such frames need to be acknowledged similarly to frames sent to the local permanent address when this random address functionality is not used.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -4699,6 +4699,10 @@ enum nl80211_feature_flags { · 4698 unmodified lines | |||
| 4699 | * configuration (AP/mesh) with VHT rates. | 4699 | * configuration (AP/mesh) with VHT rates. |
| 4700 | * @NL80211_EXT_FEATURE_FILS_STA: This driver supports Fast Initial Link Setup | 4700 | * @NL80211_EXT_FEATURE_FILS_STA: This driver supports Fast Initial Link Setup |
| 4701 | * with user space SME (NL80211_CMD_AUTHENTICATE) in station mode. | 4701 | * with user space SME (NL80211_CMD_AUTHENTICATE) in station mode. |
| 4702 | * @NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA: This driver supports randomized TA | ||
| 4703 | * in @NL80211_CMD_FRAME while not associated. | ||
| 4704 | * @NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED: This driver supports | ||
| 4705 | * randomized TA in @NL80211_CMD_FRAME while associated. | ||
| 4702 | * | 4706 | * |
| 4703 | * @NUM_NL80211_EXT_FEATURES: number of extended features. | 4707 | * @NUM_NL80211_EXT_FEATURES: number of extended features. |
| 4704 | * @MAX_NL80211_EXT_FEATURES: highest extended feature index. | 4708 | * @MAX_NL80211_EXT_FEATURES: highest extended feature index. |
| @@ -4714,6 +4718,8 @@ enum nl80211_ext_feature_index { · 9 unmodified lines | |||
| 4714 | NL80211_EXT_FEATURE_BEACON_RATE_HT, | 4718 | NL80211_EXT_FEATURE_BEACON_RATE_HT, |
| 4715 | NL80211_EXT_FEATURE_BEACON_RATE_VHT, | 4719 | NL80211_EXT_FEATURE_BEACON_RATE_VHT, |
| 4716 | NL80211_EXT_FEATURE_FILS_STA, | 4720 | NL80211_EXT_FEATURE_FILS_STA, |
| 4721 | NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA, | ||
| 4722 | NL80211_EXT_FEATURE_MGMT_TX_RANDOM_TA_CONNECTED, | ||
| 4717 | 4723 | ||
| 4718 | /* add new features before the definition below */ | 4724 | /* add new features before the definition below */ |
| 4719 | NUM_NL80211_EXT_FEATURES, | 4725 | NUM_NL80211_EXT_FEATURES, |