On Sat, Mar 21, 2009 at 7:39 AM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > The regulatory info for JP looks very odd > (http://wireless.kernel.org/en/developers/Regulatory/Database?alpha2=JP): > > country JP: > (2402.000 - 2472.000 @ 40.000), (N/A, 20.00) > (2457.000 - 2482.000 @ 20.000), (N/A, 20.00) > (2474.000 - 2494.000 @ 20.000), (N/A, 20.00), NO-OFDM > > (4910.000 - 4930.000 @ 10.000), (N/A, 23.00) > (4910.000 - 4990.000 @ 40.000), (N/A, 23.00) > > (4930.000 - 4950.000 @ 10.000), (N/A, 23.00) > > (5030.000 - 5045.000 @ 10.000), (N/A, 23.00) > (5030.000 - 5090.000 @ 40.000), (N/A, 23.00) > (5050.000 - 5060.000 @ 10.000), (N/A, 23.00) > > (5170.000 - 5250.000 @ 40.000), (N/A, 20.00) > > (5250.000 - 5330.000 @ 40.000), (N/A, 20.00), DFS > > (5490.000 - 5710.000 @ 40.000), (N/A, 23.00), DFS > > multiple of the ranges (blocked) overlap, especially the 4910 MHz part > is strange, seems like that first rule should be killed. Yeah, I think you're right. The second rule seems to imply the 10 MHz width part as well. > Also, how > should the 2.4GHz part be interpreted? Channels 1-11 allow 40 width channels, so HT40 is allowed. Channels 12, 13 only allow 20 MHz width channels, so HT40 is disallowed. Channel 14 only allows OFDM. > Currently we are not interpreting overlapping ranges properly at all -- > we really need to fix a set of interpretation rules. Sort of, we currently stick to the first reg rule which fits our desired bandwidth. Right now we iterate through 2 possible max bandwidths -- 40 and 20 and then set the channel max bandwidth based on which one fits. Note though that we do disregard the freq_range max bandwidth, which my patches correct. We also need to consider for future usage custom bandwidths, which I guess why we had the first JP rule for 4 GHz (but yeah the second rule seem to imply what the first one intends on allowing). First step might be to say allow drivers to use monitor mode with 10 MHz bandwidth or 5 MHz bandwidth. That of course would also need further work other than regulatory. Luis -- 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