nl80211: Do not try to change supported rates

For mesh mode to work properly, set supported rates only once.

Signed-off-by: Javier Lopez <jlopex@gmail.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: Jason Mobarak <x@jason.mobarak.name>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
This commit is contained in:
Bob Copeland 2014-09-01 00:23:23 -04:00 committed by Jouni Malinen
parent 7a228b5c3f
commit 5551bc9cb2

View file

@ -7930,10 +7930,13 @@ static int wpa_driver_nl80211_sta_add(void *priv,
NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, if_nametoindex(bss->ifname)); NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, if_nametoindex(bss->ifname));
NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, params->addr); NLA_PUT(msg, NL80211_ATTR_MAC, ETH_ALEN, params->addr);
NLA_PUT(msg, NL80211_ATTR_STA_SUPPORTED_RATES, params->supp_rates_len,
params->supp_rates); if (!params->set || (params->flags & WPA_STA_TDLS_PEER)) {
wpa_hexdump(MSG_DEBUG, " * supported rates", params->supp_rates, NLA_PUT(msg, NL80211_ATTR_STA_SUPPORTED_RATES,
params->supp_rates_len); params->supp_rates_len, params->supp_rates);
wpa_hexdump(MSG_DEBUG, " * supported rates",
params->supp_rates, params->supp_rates_len);
}
if (!params->set) { if (!params->set) {
if (params->aid) { if (params->aid) {
wpa_printf(MSG_DEBUG, " * aid=%u", params->aid); wpa_printf(MSG_DEBUG, " * aid=%u", params->aid);