On Fri, Jan 25, 2013 at 5:52 PM, Thomas Pedersen <[email protected]> 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
_______________________________________________
Devel mailing list
[email protected]
http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel

Reply via email to