diff --git a/src/drivers/driver.h b/src/drivers/driver.h index 935309b4d..6b8d1e079 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -60,6 +60,8 @@ struct hostapd_channel_data { u8 max_tx_power; }; +#define HOSTAPD_MODE_FLAG_HT_INFO_KNOWN BIT(0) + /** * struct hostapd_hw_modes - Supported hardware mode information */ @@ -103,6 +105,8 @@ struct hostapd_hw_modes { * a_mpdu_params - A-MPDU (IEEE 802.11n) parameters */ u8 a_mpdu_params; + + unsigned int flags; /* HOSTAPD_MODE_FLAG_* */ }; diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index 63c407fbf..e5ab1b034 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -3657,6 +3657,7 @@ static int phy_info_handler(struct nl_msg *msg, void *arg) mode = &phy_info->modes[*(phy_info->num_modes)]; memset(mode, 0, sizeof(*mode)); + mode->flags = HOSTAPD_MODE_FLAG_HT_INFO_KNOWN; *(phy_info->num_modes) += 1; nla_parse(tb_band, NL80211_BAND_ATTR_MAX, nla_data(nl_band),