On Tue, Oct 25, 2011 at 3:56 PM, Stanislaw Gruszka <sgruszka@xxxxxxxxxx> wrote: > On Tue, Oct 25, 2011 at 10:26:34AM +0200, Eliad Peller wrote: >> Some buggy APs (and even P2P_GO) don't advertise their >> basic rates in the association response. >> >> In such case, use the min supported rate as the >> basic rate. > > Can we do this in simpler way? > > if (unlikely(!basic_rates)) > basic_rates = BIT(ffs(rates) - 1); > the bitrates array is not sorted, so i guess not (unless we want to choose an arbitrary rate). Eliad. -- 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