]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Configuration of the I2R LMR Feedback policy
authorKhanjan Desai <khanjan@qti.qualcomm.com>
Mon, 9 Jun 2025 09:58:38 +0000 (15:28 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 24 Sep 2025 10:28:15 +0000 (13:28 +0300)
Allow I2R LMR policy to be configured in hostapd.conf and advertised the
configured policy in the Extended Capabilities field in Beacon and Probe
Response frames.

Signed-off-by: Khanjan Desai <khanjan@qti.qualcomm.com>
hostapd/config_file.c
hostapd/hostapd.conf
src/ap/ap_config.h
src/ap/ieee802_11_shared.c

index d9fb42da958bc07949278b0840d8ac645a8db542..983dfad0a3f8f0e7ba1f9d4da22600f49bf42a6c 100644 (file)
@@ -4954,6 +4954,8 @@ static int hostapd_config_fill(struct hostapd_config *conf,
                bss->mld_indicate_disabled = atoi(pos);
 #endif /* CONFIG_TESTING_OPTIONS */
 #endif /* CONFIG_IEEE80211BE */
+       } else if (os_strcmp(buf, "i2r_lmr_policy") == 0) {
+               conf->i2r_lmr_policy = atoi(pos);
        } else {
                wpa_printf(MSG_ERROR,
                           "Line %d: unknown configuration item '%s'",
index 40dffca713a035e59c27143a7ec353d8aa358127..2302e2abe2d8a887ee5a5788a37908f741e72eef 100644 (file)
@@ -2441,6 +2441,21 @@ own_ip_addr=127.0.0.1
 #urnm_mfpr=0
 #urnm_mfpr_x20=0
 
+#i2r_lmr_policy: Policy for I2R LMR feedback
+# This indicates whether initiating stations are required to support the
+# capability to generate and transmit Initiator-to-Responder Location
+# Measurement Reports (I2R LMRs).
+# This parameter matches the dot11I2RLMRFeedbackPolicy MIB variable.
+#
+# When set to 1:
+# Do not require initiating stations to support I2R LMR generation and
+# transmission.
+#
+# When set to 0:
+# Request initiating stations to negotiate and support the transmission of
+# I2R LMRs during location measurement operations.
+#i2r_lmr_policy=1
+
 ##### IEEE 802.11r configuration ##############################################
 
 # Mobility Domain identifier (dot11FTMobilityDomainID, MDID)
index 4cb0849a607610f60793370d6093a11b4f52136e..db5f75ef00d77513a0398e51835bac7d1d2419bb 100644 (file)
@@ -1241,6 +1241,9 @@ struct hostapd_config {
 
        bool channel_usage;
        bool peer_to_peer_twt;
+
+       /* Set I2R LMR policy to allow LMR response from ISTA */
+       bool i2r_lmr_policy;
 };
 
 
index 346b7e10382a1405ce5a969221fb71ae10bac6c6..750891425817be7c5491d48aa7936b0a2be387c5 100644 (file)
@@ -481,6 +481,8 @@ static void hostapd_ext_capab_byte(struct hostapd_data *hapd, u8 *pos, int idx,
 #endif /* CONFIG_SAE_PK */
                break;
        case 12: /* Bits 96-103 */
+               if (hapd->iconf->i2r_lmr_policy)
+                       *pos |= 0x02; /* Bit 97 - I2R LMR Feedback Policy */
                if (hapd->iconf->peer_to_peer_twt)
                        *pos |= 0x10; /* Bit 100 - Peer to Peer TWT */
                if (hapd->conf->known_sta_identification)