Hello! I would like to remind this my email... On Thursday 11 June 2020 13:30:09 Pali Rohár wrote: > 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? Is there any firmware command which returns maximal number of AP interfaces which kernel can create? If not then I would suggest to create per-card constant for maximal number of AP interfaces in mwifiex driver and hardcode it to 4 on 8997 card. Any objections?