]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Allow driver wrappers to indicate whether HT info is known
authorJouni Malinen <j@w1.fi>
Sun, 23 Oct 2011 14:17:39 +0000 (17:17 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 23 Oct 2011 14:21:39 +0000 (17:21 +0300)
This is needed to be able to figure out whether the driver is known
not to support HT.

src/drivers/driver.h
src/drivers/driver_nl80211.c

index 935309b4db7b25659614c7ecc6e4128ca3ae578a..6b8d1e07931cff2662af3ed1a59eb7822094a0d2 100644 (file)
@@ -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_* */
 };
 
 
index 63c407fbf7d84c6499405e3534e62c42ea6db898..e5ab1b034265f2ab7e7057a26edefba5172b84e2 100644 (file)
@@ -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),