On Wed, Dec 22, 2010 at 22:22, Luciano Coelho <luciano.coelho@xxxxxxxxx> wrote: > On Wed, 2010-12-22 at 16:27 +0200, ext Arik Nemtsov wrote: >> Rate class configuration has been split up for AP and STA modes. >> Template related configuration likewise separated. >> >> Signed-off-by: Arik Nemtsov <arik@xxxxxxxxxx> >> --- > > [...] > >> @@ -153,6 +153,45 @@ static struct conf_drv_settings default_conf = { >> .tx_op_limit = 1504, >> }, >> }, >> + .ap_rc_conf = { >> + [0] = { >> + .enabled_rates = 0x1EFF, >> + .short_retry_limit = 10, >> + .long_retry_limit = 10, >> + .aflags = 0, >> + }, >> + [1] = { >> + .enabled_rates = 0x1EFF, >> + .short_retry_limit = 10, >> + .long_retry_limit = 10, >> + .aflags = 0, >> + }, >> + [2] = { >> + .enabled_rates = 0x1EFF, >> + .short_retry_limit = 10, >> + .long_retry_limit = 10, >> + .aflags = 0, >> + }, >> + [3] = { >> + .enabled_rates = 0x1EFF, >> + .short_retry_limit = 10, >> + .long_retry_limit = 10, >> + .aflags = 0, >> + }, >> + }, >> + .ap_mgmt_conf = { >> + .enabled_rates = 0x7, >> + .short_retry_limit = 10, >> + .long_retry_limit = 10, >> + .aflags = 0, >> + }, >> + .ap_bcst_conf = { >> + .enabled_rates = 0x1, >> + .short_retry_limit = 10, >> + .long_retry_limit = 10, >> + .aflags = 0, >> + }, >> + > > All the enabled_rates values here look quite magic. Is there any way > these could be changed to macros or something more descriptive? These are simply bitmasks of enabled rates. I can change these to definitions and add some explanation about the limitations (basically the FW supports up to 12 rates). > > Also, how do you deal with the different basic rates used by 11bg and > 11a? Currently AP mode is not supported for 11a. Obviously we'd need different rate configuration there. This is controlled by the NVS file right now, but its a good idea to hard-code only 11bg support for AP-mode. We expect users to have only one NVS file on the device, and we do want 11a support for STA. Also looking at the rate config part made me realize that "basic_rate_set" is not updated where it should be in AP mode. I'll fix this as well. Regards, Arik -- 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