[please trim quotes] > > @@ -671,8 +728,16 @@ static int reg_rules_intersect(const struct ieee80211_reg_rule *rule1, > > freq_range2->start_freq_khz); > > freq_range->end_freq_khz = min(freq_range1->end_freq_khz, > > freq_range2->end_freq_khz); > > - freq_range->max_bandwidth_khz = min(freq_range1->max_bandwidth_khz, > > - freq_range2->max_bandwidth_khz); > > + > > + max_bandwidth1 = freq_range1->max_bandwidth_khz; > > + if (!max_bandwidth1) > > + max_bandwidth1 = reg_get_max_bandwidth(rd1, rule1); > > + > > + max_bandwidth2 = freq_range1->max_bandwidth_khz; > > I guess you want to use freq_range2 here ... That does seem likely :) > > + if (!max_bandwidth1) > > and check max_bandwidth2 here. > > > + max_bandwidth2 = reg_get_max_bandwidth(rd2, rule2); > > + > > + freq_range->max_bandwidth_khz = min(max_bandwidth1, max_bandwidth2); I'm not sure if you shouldn't do the reg_get_max_bandwidth() on the result though rather than on the input domains? But I haven't thought hard about it. joahnnes -- 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