From: Jouni Malinen Date: Fri, 15 Aug 2008 19:10:41 +0000 (+0300) Subject: Fixed supported rates IE generation for Probe Response frames. X-Git-Tag: hostap_0_6_5~101 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=101533269f03104c08a442531cf767e1e5969d0f;p=thirdparty%2Fhostap.git Fixed supported rates IE generation for Probe Response frames. --- diff --git a/wpa_supplicant/mlme.c b/wpa_supplicant/mlme.c index 20f270164..6f0fdf127 100644 --- a/wpa_supplicant/mlme.c +++ b/wpa_supplicant/mlme.c @@ -840,8 +840,6 @@ static void ieee80211_send_probe_req(struct wpa_supplicant *wpa_s, supp_rates[1] = 0; for (i = 0; i < wpa_s->mlme.num_curr_rates; i++) { struct wpa_rate_data *rate = &wpa_s->mlme.curr_rates[i]; - if (!(rate->flags & WPA_RATE_SUPPORTED)) - continue; if (esupp_rates) { pos = buf + 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[1] = 1; pos = &esupp_rates[2]; + len += 3; } else { pos = buf + len; len++;