diff options
author | Jouni Malinen <j@w1.fi> | 2009-12-09 21:38:14 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2009-12-09 21:38:14 +0200 |
commit | 217e7eeaf070cc47c25712937cc84a75c77b44f8 (patch) | |
tree | 33dad6c317533746761eb88add9e719da75c5dae /src/drivers/driver_nl80211.c | |
parent | 22a7c9d735d3df82d982d0f0915fa0d35a88cb7b (diff) | |
download | external_wpa_supplicant_8_ti-217e7eeaf070cc47c25712937cc84a75c77b44f8.zip external_wpa_supplicant_8_ti-217e7eeaf070cc47c25712937cc84a75c77b44f8.tar.gz external_wpa_supplicant_8_ti-217e7eeaf070cc47c25712937cc84a75c77b44f8.tar.bz2 |
Remove unused rate flags from driver use
These are not really used and can be removed to clean up the driver
interface definition. The only remaining flag (HOSTAPD_RATE_BASIC) can
be removed once the basic rate set indication can be handled
differently.
Diffstat (limited to 'src/drivers/driver_nl80211.c')
-rw-r--r-- | src/drivers/driver_nl80211.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c index b8651e2..26e4758 100644 --- a/src/drivers/driver_nl80211.c +++ b/src/drivers/driver_nl80211.c @@ -2394,9 +2394,6 @@ static int phy_info_handler(struct nl_msg *msg, void *arg) mode->rates[idx].rate > 200) mode->mode = HOSTAPD_MODE_IEEE80211G; - if (tb_rate[NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE]) - mode->rates[idx].flags |= HOSTAPD_RATE_PREAMBLE2; - idx++; } } @@ -2455,9 +2452,10 @@ wpa_driver_nl80211_add_11b(struct hostapd_hw_modes *modes, u16 *num_modes) } for (i = 0; i < mode11g->num_rates; i++) { - if (mode11g->rates[i].rate > 110 || - mode11g->rates[i].flags & - (HOSTAPD_RATE_ERP | HOSTAPD_RATE_OFDM)) + if (mode11g->rates[i].rate != 10 && + mode11g->rates[i].rate != 20 && + mode11g->rates[i].rate != 55 && + mode11g->rates[i].rate != 110) continue; mode->rates[mode->num_rates] = mode11g->rates[i]; mode->num_rates++; |