svn commit: r295607 - head/sys/dev/usb/wlan

Hans Petter Selasky hps at selasky.org
Sun Feb 14 15:37:14 UTC 2016


On 02/14/16 16:23, Adrian Chadd wrote:
> uhm, why'd you not just file a separate pr for this?
>
> 8 keys limits how many stations it can support in hostap mode :( I'd
> rather the bitmap management code gets fixed.
>

Hi,

 From what I can see 8 keys is the maximum due to the following shift:

         /* Set cipher mode. */
         if (rum_modbits(sc, rvp_id < 2 ? RT2573_SEC_CSR1 : RT2573_SEC_CSR5,
               mode << (rvp_id % 2 + k->wk_keyix) * RT2573_SKEY_MAX,
               RT2573_MODE_MASK << (rvp_id % 2 + k->wk_keyix) * 
RT2573_SKEY_MAX)
             != 0)
                 goto print_err;


It is only about bitmanagement, but about where to actually write those 
bits. Feel free to fix it.

--HPS


More information about the svn-src-all mailing list