On Thu, 2015-11-12 at 08:59 +0100, Johannes Berg wrote:
> On Wed, 2015-11-11 at 23:15 +0100, Johannes Berg wrote:
> >  
> > +static unsigned long long count_or_symbols(struct expr *e)
> > +{
> > +   switch (e->type) {
> > +   case E_SYMBOL:
> > +           return 1;
> 
> Oh, this is obviously bogus - I need to count the *enabled* symbols.
> 

-               return 1;
+               sym_calc_value(e->left.sym);
+               return e->left.sym->curr.tri != no;

works properly.

johannes
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to