diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 867229ea1..1067787f2 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -7504,7 +7504,7 @@ static u8 * hostapd_eid_nr_db(struct hostapd_data *hapd, u8 *eid, /* BSS parameters */ *eid++ = nr->bss_parameters; /* 20 MHz PSD */ - *eid++ = RNR_20_MHZ_PSD_MAX_TXPOWER - 1; + *eid++ = RNR_20_MHZ_PSD_MAX_TXPOWER; len += RNR_TBTT_INFO_LEN; *size_offset = (eid - size_offset) - 1; } @@ -7563,7 +7563,7 @@ static bool hostapd_eid_rnr_bss(struct hostapd_data *hapd, bss_param |= RNR_BSS_PARAM_CO_LOCATED; *eid++ = bss_param; - *eid++ = RNR_20_MHZ_PSD_MAX_TXPOWER - 1; + *eid++ = RNR_20_MHZ_PSD_MAX_TXPOWER; if (!ap_mld) { *len += RNR_TBTT_INFO_LEN; diff --git a/src/common/ieee802_11_defs.h b/src/common/ieee802_11_defs.h index 09f7d0054..8ffc199ae 100644 --- a/src/common/ieee802_11_defs.h +++ b/src/common/ieee802_11_defs.h @@ -2524,7 +2524,9 @@ struct ieee80211_he_mu_edca_parameter_set { #define RNR_BSS_PARAM_MEMBER_CO_LOCATED_ESS BIT(4) #define RNR_BSS_PARAM_UNSOLIC_PROBE_RESP_ACTIVE BIT(5) #define RNR_BSS_PARAM_CO_LOCATED BIT(6) -#define RNR_20_MHZ_PSD_MAX_TXPOWER 255 /* dBm */ +/* Maximum transmit power in Y/2 dBm (-127..126); 127 indicates no maximum + * transmit power is specified for the corresponding 20 MHz channel. */ +#define RNR_20_MHZ_PSD_MAX_TXPOWER 127 /* IEEE P802.11be/D5.0, Figure 9-704c - MLD Parameters subfield format */ /* B0..B7: AP MLD ID */