]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
wifi: ieee80211: add Radio Measurement action fields
authorAditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Wed, 28 May 2025 03:39:47 +0000 (09:09 +0530)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 20 Jun 2025 08:43:41 +0000 (10:43 +0200)
Drivers that support Tx power insertion could examine the outgoing Radio
measurement packet and depending on the packet type, the driver can
insert specific data fields in it. These action field values will help
drivers classify the action code within the Radio Measurement action
packet.

These action fields are defined in IEEE 802.11-2024 - Table 9-470, Radio
Measurement Action field values.

Signed-off-by: Aditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Link: https://patch.msgid.link/20250528-add_rrm_action_code-v1-1-6b7c78b5bbaf@oss.qualcomm.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/ieee80211.h

index 22f39e5e2ff1b62e37ff0c2c0d9e09ea03a304b1..120de474a8bf274e1abbb9eb85b0f84718c68ca6 100644 (file)
@@ -4007,6 +4007,16 @@ enum ieee80211_s1g_actioncode {
        WLAN_S1G_TWT_INFORMATION = 11,
 };
 
+/* Radio measurement action codes as defined in IEEE 802.11-2024 - Table 9-470 */
+enum ieee80211_radio_measurement_actioncode {
+       WLAN_RM_ACTION_RADIO_MEASUREMENT_REQUEST = 0,
+       WLAN_RM_ACTION_RADIO_MEASUREMENT_REPORT  = 1,
+       WLAN_RM_ACTION_LINK_MEASUREMENT_REQUEST  = 2,
+       WLAN_RM_ACTION_LINK_MEASUREMENT_REPORT   = 3,
+       WLAN_RM_ACTION_NEIGHBOR_REPORT_REQUEST   = 4,
+       WLAN_RM_ACTION_NEIGHBOR_REPORT_RESPONSE  = 5,
+};
+
 #define IEEE80211_WEP_IV_LEN           4
 #define IEEE80211_WEP_ICV_LEN          4
 #define IEEE80211_CCMP_HDR_LEN         8