On Thu, Aug 16, 2012 at 06:47:09PM +0530, Mahesh Palivela wrote: > On 8/16/2012 3:52 PM, Stanislaw Gruszka wrote: > >On Tue, Aug 14, 2012 at 03:55:26PM +0000, Mahesh Palivela wrote: > >>Handling of 80 MHz, 160 MHz channel bandwidths for VHT (11ac) Regulatory > >>and setting channel flags for allowed bandwidths. > >> > >>Signed-off-by: Mahesh Palivela <maheshp@xxxxxxxxxxx> > >>--- > >> > >>Sending patch second time as Stanislaw Gruszka complained its malformed. > > > >And now complaining that patch is ugly. There is really on other, > >simpler way to handle that? > > > >Stanislaw > > > oh, you mean my implementation is ugly? Not a problem. Give me some > clue, I will work on it. We can not extend channel, if regulatory disallow to use some nearby channels or disallow HT at all. So it's not possible that for particular channel that we can extend it to let say -160|0+ and -0|160+, but can not extend it to -40|120+. So we do not need zilion flags, but just specify left and right borders, inside which we can extend channel. For example: channel 36 (5180 MHz) is prohibited and all channels above are allowed. For channel 52 (5260 MHz) left border will be -60 and right border +160 (max). That will allow to support VHT160: -60|100+, -40|120+, -20|140+, -0|160+ ; VHT80: -60|20+, -40|40+, -20|60+, -0|80+ ; HT40 :-40|0+, -0|40+ Stanislaw -- 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