On Tue, Mar 10, 2009 at 12:16 AM, Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote: > On Mon, 2009-03-09 at 22:04 -0400, Luis R. Rodriguez wrote: >> Few patches which actually make use of the channel bandwidth, lets >> also send this to userspace as it useful to tell which channels you'll >> be able to use HT40 or not on as a client. > > Can you remind me why we have that max_bandwidth at all? It seems we > would be able to see whether ht40 fits by checking the above/below > sideband channel for use permission. To allow you to create bands for your regulatory domain and give easy access to the allowed bandwidth. A good example is the world regulatory domain right now with no HT40 for channels 12, 13 and 14. cfg80211 does the checks for us only once upon regulatory domain changes and that work gives us easy access to the allowed possible channel width. The alternative is to call something like freq_reg_info() on this call path and do the check in the places we need. Originally we had the NO-HT20 and NO-HT40 flags but as it turns out HT20 is now allowed everywhere and we determine we can just use the channel bandwidth to figure out whether or not you can use HT40. 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