Fixed supported rates IE generation for Probe Response frames.

This commit is contained in:
Jouni Malinen 2008-08-15 22:10:41 +03:00 committed by Jouni Malinen
parent 7524cfb1a3
commit 101533269f

View file

@ -840,8 +840,6 @@ static void ieee80211_send_probe_req(struct wpa_supplicant *wpa_s,
supp_rates[1] = 0; supp_rates[1] = 0;
for (i = 0; i < wpa_s->mlme.num_curr_rates; i++) { for (i = 0; i < wpa_s->mlme.num_curr_rates; i++) {
struct wpa_rate_data *rate = &wpa_s->mlme.curr_rates[i]; struct wpa_rate_data *rate = &wpa_s->mlme.curr_rates[i];
if (!(rate->flags & WPA_RATE_SUPPORTED))
continue;
if (esupp_rates) { if (esupp_rates) {
pos = buf + len; pos = buf + len;
len++; len++;
@ -851,6 +849,7 @@ static void ieee80211_send_probe_req(struct wpa_supplicant *wpa_s,
esupp_rates[0] = WLAN_EID_EXT_SUPP_RATES; esupp_rates[0] = WLAN_EID_EXT_SUPP_RATES;
esupp_rates[1] = 1; esupp_rates[1] = 1;
pos = &esupp_rates[2]; pos = &esupp_rates[2];
len += 3;
} else { } else {
pos = buf + len; pos = buf + len;
len++; len++;