On Mon, Jul 11, 2022 at 03:13:58PM -0400, Farhan Khan wrote: > On Mon, Jul 11, 2022, at 2:24 PM, Stefan Sperling wrote: > Thank you so much for your prompt reply! > > > In AP mode, max nodes effectively sets a limit on how many clients can > > be connected concurrently. Because athn(4) USB firmware has an internal > > limit of 8 stations in its station table, and one entry is reserved for > > other use, the USB device can only serve 7 clients at a time. > > Can you please show me where that limit is set to 7 or 8?
Sorry, my memories of what happened here were flaky. There used to be a limit on max_nnodes as described above. But this was lifted because it was also enforced in client mode (so the driver could not scan for more than 8 APs at a time). See this commit: https://github.com/openbsd/src/commit/dd463f29c687b46f3b8f379c8ee269693223931a > > In the line of code you linked to, a similar cap is applied based on the > > number of pairwise WPA key slots available in hardware. This should be > > larger than the USB device limit, since the driver queries the device for > > this limit and caps it at 128. > > > > As this paragraph says, rather than 7 or 8, sc->kc_entries is 128. > And lastly, how is ic_max_nnodes used by the net80211 stack? It limits the amount of new allocations in ieee80211_alloc_node_helper().
