On Thu, 2010-05-27 at 09:41 +0900, Bruno Randolf wrote: > > + } else { > > + /* > > + * If no rates were explicitly configured, > > + * use the mandatory rate set for 11b or > > + * 11a for maximum compatibility. > > + */ > > + struct ieee80211_supported_band *sband = > > + wiphy->bands[ibss.channel->band]; > > + int j; > > + u32 flag = ibss.channel->band == IEEE80211_BAND_5GHZ ? > > + IEEE80211_RATE_MANDATORY_A : > > + IEEE80211_RATE_MANDATORY_B; > > + > > + for (j = 0; j < sband->n_bitrates; j++) { > > + if (sband->bitrates[j].flags & flag) > > + ibss.basic_rates |= j; > > + } > > + } > > couldn't we use ieee80211_mandatory_rates() here? Yeah, but it would have to migrate to cfg80211. johannes -- 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