On Fri, Oct 24, 2008 at 01:47:03AM -0700, Benoit PAPILLAULT wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Luis R. Rodriguez a écrit : > > On Wed, Oct 22, 2008 at 10:31:13PM -0700, Benoit PAPILLAULT wrote: > >>> 2483.5 - 2454 = 29.5 so 29.5 should be the max bandwidth. > >> Not exactly. The maximum power in this band depends on whether we are > >> indoor or outdoor. If we are indoor, we are allowed to have 20dBm in the > >> whole 2400 - 2454 MHz band and can still use 40MHz bandwidth. Maybe I > >> should describe that different? > >> > >> (2412 - 2483.5 @ 40), (N/A, 20), NO-OUTDOOR > >> (2412 - 2454 @ 40), (N/A, 20), NO-INDOOR > >> (2454 - 2483.5 @ 40) (N/A, 10), NO-INDOOR > >> > >> In fact, this depends on the indoor/outdoor flags issue which can be > >> resolved later. > > > > But I wasn't speaking about power, I was speaking about channel > > bandwidth. You cannot fit a 40 MHz channel into the freq range > > 2483.5 - 2454. > > The whole band is still 2412-2483.5MHz in both cases (indoor/outdoor), > this is just that different TX power rules apply for frequencies below > 2454 MHz and above when used outdoor. > > To me, it's valid to have a 40MHz channel centered at 2462 MHz covering > the range [2442, 2482] MHz. When used outdoor, it will be limited to 10 > dBm on the whole range. This is an interesting case... so right now we apply a reg rule to a channel upon register or when a regulatory domain changes. We do this in handle_channel(). This calls freq_reg_info() and one parameter we can pass there is the max_bandwidth we know we want or 0 if we have no requirement. We use 0 on max_bandwidth right now as we haven't added code for checking max bandwidth yet in mac80211, I think we can add desired tx power here as well and it'll then be able to pick up the correct rule. However this does require adding code to reg.c. and maybe mac80211. We'll have to keep this in mind and add it, but the reg rule for 2454 - 2483.5 should still not have 40 MHz for max bandwidth as only 29.5 MHz fits in it. 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