On Tue, 2011-01-11 at 10:32 +0200, Luciano Coelho wrote: > Hi Johannes, > > On Tue, 2011-01-11 at 09:25 +0100, Johannes Berg wrote: > > On Mon, 2011-01-10 at 23:04 +0200, Arik Nemtsov wrote: > > > The number of 5ghz channels is set to 0 when 11a is not supported in the > > > NVS file. When a single rmmod/insmod of wl12xx_sdio this leads to a > > > supported band (5ghz) with 0 supported channels, which mac80211 > > > considers illegal. > > > > The setting to 0 shouldn't be happening in a global structure anyway > > since that way you can't support two different devices in the same > > system!! > > This is that hack we discussed some time ago on how to disable the 11a > channels. [snip explanation] You misunderstood: I do remember discussing the hack, and it's still a hack but it works and I'm OK with it. However, you shouldn't be modifying a _global_ struct. You should at least copy the sband struct itself (array actually then), which can still refer to the global channel array, but then you don't modify global shared data for device-dependent properties like this. johannes -- 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