On Fri, Jan 25, 2013 at 5:52 PM, Thomas Pedersen <thomas@xxxxxxxxxxx> wrote: ... > + rcu_read_lock(); > + list_for_each_entry_rcu(sta, &local->sta_list, list) { > + if (sdata != sta->sdata || > + sta->plink_state != NL80211_PLINK_ESTAB) > + continue; > + > + rates = sta->sta.supp_rates[band]; > + for_each_set_bit(i, (unsigned long *)&rates, > + sizeof(rates) * BITS_PER_BYTE) { > + if (bitrates[i].flags & IEEE80211_RATE_ERP_G) { > + short_slot = true; > + break; > + } > + } > + > + if (!short_slot) > + break; Grrr. Forgot to reset short_slot while iterating over peers. Will fix in a v2. -- Thomas -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html