public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
From: "Pali Rohár" <pali@kernel.org>
To: "Ganapathi Bhat" <ganapathi.bhat@nxp.com>,
	"Amitkumar Karwar" <amitkarwar@gmail.com>,
	"Xinming Hu" <huxinming820@gmail.com>,
	linux-wireless@vger.kernel.org,
	"Marek Behún" <marek.behun@nic.cz>
Subject: mwifiex: Maximal number of AP interfaces
Date: Thu, 11 Jun 2020 13:30:09 +0200	[thread overview]
Message-ID: <20200611113009.v7cpybecc55vtni2@pali> (raw)

Hello!

mwifiex kernel driver has currently hardcoded maximal number of AP
interfaces to 3. It is defined by MWIFIEX_MAX_UAP_NUM constant and
'.max' member in 'mwifiex_ap_sta_limits' structure.

I tried to increase this limit and figured out that SD8997 card can
create four independent BSSIDs in AP mode. Not only 3. Scanning for wifi
networks on another device proved that SD8997 was really broadcasting 4
SSIDs.

When I tried to create fifth AP interface/SSID then mwifiex received
error "mwifiex_cmd_timeout_func: Timeout cmd id = 0x4d, act = 0x1" and
then card firmware crashed. SDIO card was then unregistered from bus.

I would like to increase maximal number of AP interface to 4 as it is
supported by SD8997 card. But it cannot be done easily as for other
cards managed by mwifiex driver which do not support more then 3 ap
interfaces, it can cause problems...

Looks like that maximal number of AP interfaces is firmware dependent
number. Do you know if it is possible to retrieve this maximal count
from card firmware via some special command?

Or do you know how to determinate maximal number of AP interfaces?

             reply	other threads:[~2020-06-11 11:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-11 11:30 Pali Rohár [this message]
2021-02-17 12:18 ` mwifiex: Maximal number of AP interfaces Pali Rohár
2021-07-17 13:53   ` Pali Rohár

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200611113009.v7cpybecc55vtni2@pali \
    --to=pali@kernel.org \
    --cc=amitkarwar@gmail.com \
    --cc=ganapathi.bhat@nxp.com \
    --cc=huxinming820@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=marek.behun@nic.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox