BACKPORT: wifi: nl80211: Add POWERED_ADDR_CHANGE feature
Add a new extended feature bit signifying that the wireless hardware supports changing the MAC address while the underlying net_device is powered. Note that this has a different meaning from IFF_LIVE_ADDR_CHANGE as additional restrictions might be imposed by the hardware, such as: - No connection is active on this interface, carrier is off - No scan is in progress - No offchannel operations are in progress Signed-off-by: James Prestwood <prestwoj@gmail.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com> Bug: 253289327 Change-Id: I078108064077205e605c1bd72300f5362a0d2d8b (cherry picked from commit a36c421690b3e5dee38fc12abfcabda742f00064) Signed-off-by: Kiran Kumar Lokere <quic_klokere@quicinc.com> Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
This commit is contained in:
committed by
Todd Kjos
parent
4743d0ad6c
commit
acf72eda07
@@ -6316,6 +6316,14 @@ enum nl80211_feature_flags {
|
||||
* @NL80211_EXT_FEATURE_RADAR_BACKGROUND: Device supports background radar/CAC
|
||||
* detection.
|
||||
*
|
||||
* @NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE: Device can perform a MAC address
|
||||
* change without having to bring the underlying network device down
|
||||
* first. For example, in station mode this can be used to vary the
|
||||
* origin MAC address prior to a connection to a new AP for privacy
|
||||
* or other reasons. Note that certain driver specific restrictions
|
||||
* might apply, e.g. no scans in progress, no offchannel operations
|
||||
* in progress, and no active connections.
|
||||
*
|
||||
* @NUM_NL80211_EXT_FEATURES: number of extended features.
|
||||
* @MAX_NL80211_EXT_FEATURES: highest extended feature index.
|
||||
*/
|
||||
@@ -6383,7 +6391,7 @@ enum nl80211_ext_feature_index {
|
||||
NL80211_EXT_FEATURE_BSS_COLOR,
|
||||
NL80211_EXT_FEATURE_FILS_CRYPTO_OFFLOAD,
|
||||
NL80211_EXT_FEATURE_RADAR_BACKGROUND,
|
||||
NL80211_EXT_FEATURE_RESERVED_DO_NOT_USE_1 = 62,
|
||||
NL80211_EXT_FEATURE_POWERED_ADDR_CHANGE,
|
||||
NL80211_EXT_FEATURE_RESERVED_DO_NOT_USE_2 = 63,
|
||||
NL80211_EXT_FEATURE_RESERVED_DO_NOT_USE_3 = 64,
|
||||
NL80211_EXT_FEATURE_RESERVED_DO_NOT_USE_4 = 65,
|
||||
|
||||
Reference in New Issue
Block a user