Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8 users/connection allowed? #462

Closed
agoralive opened this issue Dec 23, 2019 · 15 comments
Closed

8 users/connection allowed? #462

agoralive opened this issue Dec 23, 2019 · 15 comments

Comments

@agoralive
Copy link

Is this the maximum allowed users?

Is there a way to expand this?

@billz
Copy link
Member

billz commented Dec 23, 2019

RaspAP gives you control of hostapd's max_num_sta setting. As the help text clearly states, 'The default and maximum is 2007'.

@agoralive
Copy link
Author

I have 8 units connected to the AP, and then it allows no more.

Connection is just refused for extra devices, and I have this 2007 in the max_num_sta, so definitely not 2007 allowed connections?

Or is there something I just don't understand?

Merry Christmas by the way :)

@agoralive
Copy link
Author

I have tried to set the client number to 2007, 100 and 10

No difference, it allowes only 8 connections :(

@billz
Copy link
Member

billz commented Dec 25, 2019

The bottleneck is likely not hostapd, but rather a limitation of the brcmfmac driver. Other RPi users have reported substantially greater maximum AP client connections, so I'd hesitate to say it's a hardcoded limitation of brcmfmac. Available RAM, under voltage and other factors come into play. You don't mention which RPi you're using, but I would not, for example, expect more than this from a Pi Zero W.

Related discussion here raspberrypi/linux#3010

Merry Christmas :)

@agoralive
Copy link
Author

I am using a Raspberry Pi 3B+

@billz
Copy link
Member

billz commented Dec 26, 2019

Have you tried running hostapd in debug mode while you connect clients?

sudo hostapd -dd /etc/hostapd/hostapd.conf

@agoralive
Copy link
Author

Had not tried, I have now. This only throws everything off and disables wlan0.

No I will "just" live with these 8 clients, was just hoping for a way to connect 16-20 devices....

Maybe I will look into the esp_wifi_repeater, to see if this can do something....

@agoralive
Copy link
Author

I know I closed this, but would more connections be possible if I added an USB Wifi Adapter?

@agoralive agoralive reopened this Dec 26, 2019
@billz
Copy link
Member

billz commented Dec 30, 2019

It would not hurt to test with an external adapter. If you're able to connect >8 clients with the same kernel and hostapd config, it's reasonable to infer that the bottleneck is at the Broadcom WiFi chip supported by the brcmfmac driver.

@billz
Copy link
Member

billz commented Jan 6, 2020

Closing this, feel free to reopen if you have more info to add.

@billz billz closed this as completed Jan 6, 2020
@agoralive
Copy link
Author

Just as a comment, adding another wifi adapter to the Rpi, did nothing :(

Does anybody know how many the Rpi 4 allows to have connected?

@ghost
Copy link

ghost commented Feb 19, 2020

I have just conducted tests today with a Rpi4 4Gb RAM and I wasn't able to connect more than 8 devices. Same with the 3b+. Both were running latest version of Buster.

I conducted the same tests 1 year ago and the results were quite different with Stretch:
19 users with a Rpi 3b and 14 with a Rpi 3b+...

@billz
Copy link
Member

billz commented Feb 20, 2020

@ezimmert interesting data point, thanks for reporting. This may indeed be the upper bound set by brcmfmac. Out of curiosity, what is your kernel + brcmfmac firmware version?

In an ideal world, broadcom/cypress would release the firmware source code so we could verify this directly.

@andrew-d-l-nelson
Copy link

Is this something that has been addressed? I am using a Rpi4 4GB RAM with Buster and have been unable to get past 7 clients on my hotspot. It isn't a resource issue on the Rpi itself it seems (ram and cpu doesn't seem to be affected). Would love to have more able to connect at once. My workaround has been to have Rpi clients turn off their WiFi for 5 minutes ever hour to let other Rpis get a spot on the router to transfer their data. Less than optimal :D

@guillain
Copy link

Hi,

Same issue but I've added my 2 cents in the issue #3010 (still open ^^)
=> max 8 clients

Have fun and take care

@RaspAP RaspAP locked as resolved and limited conversation to collaborators Dec 20, 2020
@RaspAP RaspAP unlocked this conversation Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants