Re: [RESEND] [PATCHv2] b43 add harware tkip
From: gregor kowski <hidden>
Date: 2009-08-04 22:23:24
On 8/5/09, Michael Buesch [off-list ref] wrote:
On Wednesday 05 August 2009 00:03:11 gregor kowski wrote:quoted
On 8/4/09, Michael Buesch [off-list ref] wrote:quoted
On Tuesday 04 August 2009 23:54:42 gregor kowski wrote: You always talk about "bugs". What are these "bugs"? Is it just the wrong max_nr_keys assignment? That's trivial to fix.So [1] is ok ?Could you answer my question?
That's [1]. But may be my description wasn't good. I will try a new one. we can have up to 50 pairwise keys (due to RCMTA and tkip stuff). In the case of new API : - max_nr_keys is set to 58 - in b43_key_clear we call do_key_write for index in [0 ... 58] - in do_key_write we call keymac_write for index in [4 ... 58] - in keymac_write write to RCMTA index [0 ... 54] We write too much pairwise keys. - max_nr_keys is set to 58 - b43_key_write generate pairwise keys in [sta_keys_start ... max_nr_keys] = [0 ... 58] and call do_key_write - in do_key_write we call keymac_write for index in [4 ... 58] - in keymac_write write to RCMTA index [0 ... 54] We write too much pairwise keys. So max_nr_keys seems wrong in case of new API. Gregor. [1]
if b43_new_kidx_api is true : - we set max_nr_keys to 58 - we program B43_MMIO_RCMTA_COUNT to 50 - in b43_key_write we can allocate key up to index 58 (4 for default, 54 for sta) But there is only 50 entries for TKIPTSCTTAK, and a comment on bcm-v4 suggest there is 50 entries for RCMTA. So if there more than 50 station we will overflow RCMTA and TKIPTSCTTAK.