On Tue, 2012-06-12 at 12:33 -0700, Ashok Nagarajan wrote:
> Hello Johannes,
> 
> On Sat, Jun 9, 2012 at 1:50 AM, Johannes Berg <[email protected]> 
> wrote:
> > On Thu, 2012-06-07 at 19:21 -0700, Ashok Nagarajan wrote:
> >> Currently mesh uses mandatory rates as default basic rates. This patch
> >> introduces basic rates to be configured at the time of joining mesh.
> >
> >> +     if (!sdata->vif.bss_conf.basic_rates)
> >> +             sdata->vif.bss_conf.basic_rates =
> >> +                     ieee80211_mandatory_rates(sdata, band);
> >
> > I think this default should come from cfg80211 instead, there's little
> > point in imposing this calculation on all drivers that want to use mesh.
> >
> 
> This default initialization uses the mac80211 utility function which
> will not be accessible from cfg80211. 

cfg80211 has the same data though, the function only uses channel flags.

> Could you please explain what is
> the advantage/purpose of imposing this calculation up in cfg80211.

If there are ever non-mac80211 drivers using it they don't have to re-do
the same calculations.

johannes

_______________________________________________
Devel mailing list
[email protected]
http://lists.open80211s.org/cgi-bin/mailman/listinfo/devel

Reply via email to